Skip to content

ThemeSwitcher

uitemplate

ThemeSwitcher component

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

PropTypeRequiredDescription
themesstring[]optional
activeThemestringoptional
onChange(theme: string) => voidoptional
activeColorStyle['fg']optional
#template#theme-switcher