shadcn-vue/apps/www/src/content/docs/components/checkbox.md
2023-09-20 14:19:08 +08:00

576 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