Checkbox
A control allowing the user to toggle between checked and not checked.
Loading...
Loading code...
Installation
Usage
import { Checkbox } from "@/components/ui/checkbox"<Checkbox />Examples
For accessible labelling and validation, prefer using the Field component to wrap checkboxes. See the related example: Checkbox field.
Disabled
Loading...
Loading code...
With Description
Loading...
Loading code...
Card Style
Loading...
Loading code...
Form Integration
Field provides accessible labelling and validation primitives for form controls. Use it with Form to submit values.
Loading...
Loading code...
Comparing with Radix / shadcn
If you’re already familiar with Radix UI and shadcn/ui, this guide highlights the small differences and similarities so you can get started with ui/topia quickly.
Quick Checklist
- If you used
asChildon parts, switch to therenderprop