Checkbox
neobrutalism-components/checkboxFreeComponent
Neobrutalism Components publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by Neobrutalism Components on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.neobrutalism.dev/r/checkbox.jsonSource
1"use client"23import * as CheckboxPrimitive from "@radix-ui/react-checkbox"4import { Check } from "lucide-react"56import * as React from "react"78import { cn } from "@/lib/utils"910function Checkbox({11 className,12 ...props13}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {14 return (15 <CheckboxPrimitive.Root16 data-slot="checkbox"17 className={cn(18 "peer size-4 shrink-0 outline-2 outline-border ring-offset-white focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-main data-[state=checked]:text-white",19 className,20 )}21 {...props}22 >23 <CheckboxPrimitive.Indicator24 data-slot="checkbox-indicator"25 className={cn("flex items-center justify-center text-current")}26 >27 <Check className="size-4 text-main-foreground" />28 </CheckboxPrimitive.Indicator>29 </CheckboxPrimitive.Root>30 )31}3233export { Checkbox }
What it pulls in
npm packages
Files it writes
More from Neobrutalism Components
All 92 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Neobrutalism Components | Components | Free | 1 dep | |
| Alertalert | Neobrutalism Components | Components | Free | no deps | |
| Alert dialogalert-dialog | Neobrutalism Components | Components | Free | 1 dep | |
| Avataravatar | Neobrutalism Components | Components | Free | 1 dep | |
| Badgebadge | Neobrutalism Components | Components | Free | no deps | |
| Breadcrumbbreadcrumb | Neobrutalism Components | Components | Free | 1 dep | |
| Buttonbutton | Neobrutalism Components | Components | Free | 1 dep | |
| Calendarcalendar | Neobrutalism Components | Components | Free | 2 deps |
