Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A squircle checkbox that squashes, fills and draws its tick.
npx shadcn@latest add ikislay/pixel-ui/checkboximport { Checkbox } from "@/components/ui/checkbox"export function Demo() {return (<label className="flex items-center gap-3"><Checkbox defaultChecked />Email me about new releases</label>)}
1// Loading…
Options you can pass to customize this component.
checkedboolean"indeterminate"Controls the state. Leave it unset to let the checkbox manage itself.
defaultCheckedboolean"indeterminate"The starting state when uncontrolled.
onCheckedChange(checked: boolean) => voidCalled with the new state. Indeterminate always turns checked.
onFeedback(event: "toggle") => voidCalled at each semantic moment, for wiring sound or haptics.
classNamestringMerged onto the root element.