To style the switch, add the “switch-variant-size-color” class.
Add the switch class to the input element to apply size, variants, color.
Use the <label>
element as it is
The switch class is a dynamic unocss shortcut so you can extend it
switch-[variant]-[color]-[size]
xs
, sm
, md
, lg
, xl
, or pass a numeric value