{# @description daisyUI's toggle: a switch, rendered as a checkbox. type and role="switch" are written by the template — toggle does not accept either, and a caller passing one would produce a duplicate attribute the browser resolves to the first. A control still needs a c-form.label, an aria-label or an aria-labelledby for its accessible name. See the fieldset gallery entry for labelled, disabled and invalid examples. #}
{# @prop variant:select['neutral','primary','secondary','accent','info','success','warning','error'] | description:"Colour variant." #}
{# @prop size:select['xs','sm','md','lg','xl'] | description:"Toggle size." #}
{# @prop class:text | description:"Extra classes added to the toggle." #}
{% load daisy_cotton %}
{# djlint:off #}
{# djlint:on #}