Components
Table
Data table with dynamic column widths, overflow truncation, and five border styles.
A data table with dynamic column widths, overflow truncation, three alignment modes, and five box-drawing border styles. Fully generic over the row type.
Installation
Usage
Examples
Rounded border
Double border
ASCII (for max compatibility)
Fixed column widths
Props
| Prop | Type | Default | Description |
|---|---|---|---|
columns | TableColumn<T>[] | — | Column definitions: { key, header, align?, width? } (required) |
data | T[] | — | Array of row objects (required) |
borderStyle | 'single' | 'double' | 'rounded' | 'bold' | 'ascii' | 'single' | Box-drawing border style |
theme | InkUITheme | darkTheme | Color theme |