Switch

Implement checkbox input component

Read more Read less

Examples:

<.switch id="switch-basic-switch"/>
<.switch disabled="true" id="switch-basic-disabled" checked="true"/>
<div class="flex items-center space-x-2">
<.switch id="switch-single-with-label" checked="true"/>
<label for="switch-single-with-label">Click me</label>
</div>