Skip to content

Masonry

widgetslayout

Vertical gap between items

Installation

$ bunx termuijs add masonry

Copies the source into src/components/masonry/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { Masonry } from '@termuijs/widgets'
ts
new Masonry(children: Widget[], style?: Partial<Style>, opts?: MasonryOptions,)

API Reference

Masonry

PropTypeRequiredDescription
childrenWidget[]required
columnsnumberoptionalNumber of columns
gapnumberoptionalVertical gap between items
#layout#masonry