Checkbox

Implement checkbox input component

Read more Read less

Examples:

<.checkbox class="!border-destructive" name="agree" value={true} />
<div className="flex items-center space-x-2">
<.checkbox id="checked" value={true}/>
<.label for="checked">I'm a label</.label>
</div>
<div className="flex items-center space-x-2">
<.checkbox id="unchecked"/>
<.label for="unchecked">I'm a label</.label>
</div>