ContentSwitcher
uitemplate
show a single active child widget
Terminal
$termuijs render content-switcher
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
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | required | Page content |
title | string | — | App/page title |
padding | number | 1 | Outer padding |