875 B
875 B
| title | description | source | primitive |
|---|---|---|---|
| Checkbox | A control that allows the user to toggle between checked and not checked. | apps/www/registry/default/ui/checkbox | https://www.reka-ui.com/docs/components/checkbox.html |
Installation
npx shadcn-vue@latest add checkbox
Usage
<script setup lang="ts">
import { Checkbox } from '@/components/ui/checkbox'
</script>
<template>
<Checkbox id="terms" />
</template>
Examples
With text
Disabled
Form
Please first read vee-validate section for Checkbox and Radio Inputs