Tpk Theme Selector

A theme switcher component that persists the selected theme to localStorage.

Examples

Basic usage

  • Theme

Properties

Name Type Required Description
@themes string[] No Array of theme name strings to display as options.
@localStorageKey string No Key used to persist the selected theme in localStorage. Defaults to 'theme'.
@sidebarCollapsed boolean No When true, renders the selector in compact mode suitable for a collapsed sidebar.