Skip to content

ContentSwitcher

uitemplate

show a single active child widget

Installation

$ bunx termuijs add content-switcher

Copies the source into src/components/content-switcher/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { ContentSwitcher } from '@termuijs/ui'
ts
new ContentSwitcher(style: Partial<Style> = {})

API Reference

ContentSwitcher

PropTypeDefaultDescription
childrenReactNoderequiredPage content
titlestringApp/page title
paddingnumber1Outer padding
#template#content-switcher