Grid
layout
Grid: a true CSS-Grid-like layout container
Terminal
$termuijs render grid
Installation
$ bunx termuijs add grid
Copies the source into src/components/grid/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Grid } from '@termuijs/widgets'ts
new Grid(style: Partial<Style> = {}, options: GridOptions = {})API Reference
Grid
| Prop | Type | Required | Description |
|---|---|---|---|
columns | number | string | optional | CSS grid-template-columns track definitions, e.g |
rows | number | string | optional | CSS grid-template-rows track definitions, e.g |
gap | number | optional | Grid gap in characters/cells |