Back to Daisyui

Theme Controller

skills/daisyui/components/theme-controller.md

5.6.0491 B
Original Source

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

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