Skip to content

Tabs

uitemplate

tabbed container with keyboard switching

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

PropTypeRequiredDescription
tabsTab[]required
activeColorStyle['fg']optional
inactiveColorStyle['fg']optional
borderStyle['border']optional
#template#tabs