Masonry
layout
Vertical gap between items
Terminal
$termuijs render masonry
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
| Prop | Type | Required | Description |
|---|---|---|---|
children | Widget[] | required | — |
columns | number | optional | Number of columns |
gap | number | optional | Vertical gap between items |