checkbox
agentmesh/checkboxFreeComponent
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/checkbox.jsonSource
1"use client"23import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox"45import { cn } from "@/registry/base-vega/lib/utils"6import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"78function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {9 return (10 <CheckboxPrimitive.Root11 data-slot="checkbox"12 className={cn(13 "peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",14 className15 )}16 {...props}17 >18 <CheckboxPrimitive.Indicator19 data-slot="checkbox-indicator"20 className="grid place-content-center text-current transition-none [&>svg]:size-3.5"21 >22 <IconPlaceholder23 lucide="CheckIcon"24 tabler="IconCheck"25 hugeicons="Tick02Icon"26 phosphor="CheckIcon"27 remixicon="RiCheckLine"28 />29 </CheckboxPrimitive.Indicator>30 </CheckboxPrimitive.Root>31 )32}3334export { Checkbox }
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps |
