Checkbox
muffled-ui-registry/checkboxFreeComponent
Binary selection on ink and paper. Hairline border, opacity hover and press, no shadows.
Live preview
live · rendered by the registry
Rendered by muffled-ui-registry on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.muffled.studio/r/checkbox.jsonSource
1import { CheckIcon } from "lucide-react";2import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";34import { cn } from "@/registry/lib/surface";56function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {7 return (8 <CheckboxPrimitive.Root9 data-slot="checkbox"10 className={cn(11 "peer relative flex size-4 shrink-0 items-center justify-center rounded-md border border-border bg-background outline-none transition-opacity duration-[var(--d-drift)] ease-[var(--ease-drift)] after:absolute after:-inset-x-3 after:-inset-y-2 hover:opacity-60 focus-visible:outline focus-visible:outline-offset-2 focus-visible:outline-ring active:opacity-40 active:duration-[var(--d-snap)] active:ease-[var(--ease-snap)] data-disabled:pointer-events-none data-disabled:opacity-40 aria-invalid:border-destructive data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-disabled/field:opacity-40",12 className,13 )}14 {...props}15 >16 <CheckboxPrimitive.Indicator17 data-slot="checkbox-indicator"18 className="grid place-content-center text-current [&>svg]:size-3.5"19 >20 <CheckIcon strokeWidth={1.5} />21 </CheckboxPrimitive.Indicator>22 </CheckboxPrimitive.Root>23 );24}2526export { Checkbox };
What it pulls in
npm packages
Other registry items
Files it writes
More from muffled-ui-registry
All 55 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | muffled-ui-registry | Components | Free | 2 deps | |
| Alertalert | muffled-ui-registry | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | muffled-ui-registry | Components | Free | 1 dep | |
| Avataravatar | muffled-ui-registry | Components | Free | 1 dep | |
| Badgebadge | muffled-ui-registry | Components | Free | 2 deps | |
| Breadcrumbbreadcrumb | muffled-ui-registry | Components | Free | 2 deps | |
| Buttonbutton | muffled-ui-registry | Components | Free | 2 deps | |
| Button Groupbutton-group | muffled-ui-registry | Components | Free | 2 deps |
