shadcn-vue/apps/www/src/content/docs/components/checkbox.md
Sadegh Barati b40321e3d9
docs: fix vee-validate checkbox and radio-group examples (#213)
* docs: fix checkbox and radio form examples

add type="checkbox|radio" and name in FormField

* docs: add `vee-validate` documentation link for checkbox and radio inputs

* chore: update `vee-validate` deps
2023-12-19 18:23:05 +03:30

887 B

title description source primitive
Checkbox A control that allows the user to toggle between checked and not checked. apps/www/src/lib/registry/default/ui/checkbox https://www.radix-vue.com/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