benjaminpalko/.opencode/skills/daisyui/components/theme-controller.md
2026-08-11 15:34:48 -04:00

15 lines
492 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