Skip to content

Checkbox

A control that allows the user to toggle between checked and not checked.

Examples

Default

vue
<div class="flex items-center space-x-2">
  <Checkbox id="terms" />
  <label
    for="terms"
    class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
  >
    Accept terms and conditions
  </label>
</div>