ThemeSwitcher
uitemplate
ThemeSwitcher component
Terminal
$termuijs render theme-switcher
Installation
$ bunx termuijs add theme-switcher
Copies the source into src/components/theme-switcher/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { ThemeSwitcher } from '@termuijs/ui'ts
new ThemeSwitcher(options: ThemeSwitcherOptions = {})API Reference
ThemeSwitcher
| Prop | Type | Required | Description |
|---|---|---|---|
themes | string[] | optional | — |
activeTheme | string | optional | — |
onChange | (theme: string) => void | optional | — |
activeColor | Style['fg'] | optional | — |