Theme Switcher

Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

Additional CSS classes

theme :string

The active theme value

""
select_theme_label :string

Accessible label for the theme selector button

"Select theme"
button_text :string

Visible text on the trigger button

"Theme"
auto_label :string

Label for the auto/default theme option

"Auto"
light_label :string

Label for the light theme option

"Sunshine"
dark_label :string

Label for the dark theme option

"Moonlight"
rest :global

additional HTML attributes

trigger :slot

Optional trigger content; replaces button_text when provided

<:trigger><span aria-hidden="true">◐</span></:trigger>