Stack
layout
Stack: a widget that layers children on top of each other
Terminal
$termuijs render stack
Installation
$ bunx termuijs add stack
Copies the source into src/components/stack/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Stack } from '@termuijs/widgets'ts
new Stack(children: Widget[], style?: Partial<Style>, opts?: StackOptions)API Reference
Stack
| Prop | Type | Required | Description |
|---|---|---|---|
children | Widget[] | required | — |
activeIndex | number | optional | Which child is on top (receives key events) |