A control that allows the user to toggle between checked and not checked.
'use client'; import { useId } from 'react'; import { Checkbox } from '@/components/ui/checkbox-1'; import { Label } from '@/components/ui/label'; export default function CheckboxDemo() { const id = useId(); return ( <div className="flex items-center space-x-2"> <Checkbox id={id} disabled /> <Label htmlFor={id}>Disabled state</Label> </div> ); }
Part of ReUI — browse the full library on 21st.dev.