Checkbox() — ui Function Reference
Architecture documentation for the Checkbox() function in checkbox.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ea06a2b1_1f99_2438_ca1a_5c433dc68f53["Checkbox()"] f9a63efd_ca65_a19c_ee18_0c2b368a3d2a["checkbox.tsx"] ea06a2b1_1f99_2438_ca1a_5c433dc68f53 -->|defined in| f9a63efd_ca65_a19c_ee18_0c2b368a3d2a style ea06a2b1_1f99_2438_ca1a_5c433dc68f53 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/checkbox.tsx lines 9–30
function Checkbox({
className,
...props
}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
return (
<CheckboxPrimitive.Root
data-slot="checkbox"
className={cn(
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
className
)}
{...props}
>
<CheckboxPrimitive.Indicator
data-slot="checkbox-indicator"
className="grid place-content-center text-current transition-none"
>
<CheckIcon className="size-3.5" />
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Checkbox() do?
Checkbox() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/checkbox.tsx.
Where is Checkbox() defined?
Checkbox() is defined in apps/v4/registry/new-york-v4/ui/checkbox.tsx at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free