19 lines
496 B
Markdown
19 lines
496 B
Markdown
### theme-controller
|
|
|
|
If a checked checkbox input or a checked radio input with theme-controller class exists in the page, The page will have the same theme as that input's value
|
|
|
|
[theme-controller docs](https://daisyui.com/components/theme-controller/)
|
|
|
|
#### Class names
|
|
|
|
- component: `theme-controller`
|
|
|
|
#### Syntax
|
|
|
|
```html
|
|
<input type="checkbox" value="{theme-name}" class="theme-controller" />
|
|
```
|
|
|
|
#### Rules
|
|
|
|
- The value attribute of the input element should be a valid daisyUI theme name
|