Tabs
uitemplate
tabbed container with keyboard switching
Terminal
$termuijs render tabs
Installation
$ bunx termuijs add tabs
Copies the source into src/components/tabs/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Tabs } from '@termuijs/ui'ts
new Tabs(tabs: Tab[], options: TabsOptions = {})API Reference
Tabs
| Prop | Type | Required | Description |
|---|---|---|---|
tabs | Tab[] | required | — |
activeColor | Style['fg'] | optional | — |
inactiveColor | Style['fg'] | optional | — |
border | Style['border'] | optional | — |