Theme switcher
Select an allowed global daisyUI theme and persist the choice.
Preview
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.
| Attribute | Type | Required | Default | Accepted 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
The component adds no non-native keyboard model. Slotted interactive content remains responsible for its own accessible name.