Preview
Installation
$ pnpm dlx shadcn@latest add https://ui.ketyap.me/r/checkbox.jsonUsage
import { CheckboxItem } from "@/components/ui/checkbox";
<CheckboxItem name="terms" label="Accept terms" required />;API Reference
CheckboxItem combines Checkbox with a label and optional description. Its entire row receives the selected or mixed background. CheckboxGroup uses this same component. Use Checkbox directly when only the small checkbox control is needed.
checked / defaultChecked: boolean. onCheckedChange receives the next boolean and Base UI event details. indeterminate controls the mixed state separately. size: default or compact, inherited from SizeProvider when omitted. disabled, readOnly, required, name, value, inputRef and ARIA props follow Base UI. Use a wrapping label or aria-label. Space toggles the focused checkbox. Reduced motion skips the check drawing transition.
The outline, size and check color match CheckboxGroup. The drawn-check animation is inspired by Nexvyn Checkbox, using Ketyap UI motion.