Back to Daisyui

Theme Controller

skills/daisyui/components/theme-controller.md

5.7.20464 B
Original Source

Theme controller

If a checked checkbox or radio input has the theme-controller class, the page uses the theme in the input value.

Theme controller documentation

Class names

  • component: theme-controller

Syntax

html
<input type="checkbox" value="{theme-name}" class="theme-controller" />

Rules

  • The value attribute of the input element must contain a valid daisyUI theme name.