V Vaylan UI
Themes

Theme switcher

Select an allowed global daisyUI theme and persist the choice.

Preview

Preview theme

Example

<.theme_switcher label="Appearance" />

API contract

theme_switcher/1 uses declared Phoenix attributes and slots. This table is generated from the compiled component metadata.

AttributeTypeRequiredDefaultAccepted values
id :string No "vaylan-theme-switcher" Any value matching the declared type
label :string No "Theme" Any value matching the declared type
themes :list No nil Any value matching the declared type
value :string No nil Any value matching the declared type
class :any No nil Any value matching the declared type

States and behavior

Default and caller-supplied variants preserve semantic daisyUI colors and additive classes.

Keyboard and accessibility