Checkbox() — ui Function Reference
Architecture documentation for the Checkbox() function in checkbox.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 8797c2cd_df41_d5f4_e1b6_906cbebb3649["Checkbox()"] 2b166876_8904_6890_a475_5e25c6858600["checkbox.tsx"] 8797c2cd_df41_d5f4_e1b6_906cbebb3649 -->|defined in| 2b166876_8904_6890_a475_5e25c6858600 style 8797c2cd_df41_d5f4_e1b6_906cbebb3649 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/ui/checkbox.tsx lines 12–27
>(({ className, ...props }, ref) => (
<CheckboxPrimitive.Root
ref={ref}
className={cn(
"grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
className
)}
{...props}
>
<CheckboxPrimitive.Indicator
className={cn("grid place-content-center text-current")}
>
<Check className="h-4 w-4" />
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
))
Domain
Subdomains
Source
Frequently Asked Questions
What does Checkbox() do?
Checkbox() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/checkbox.tsx.
Where is Checkbox() defined?
Checkbox() is defined in deprecated/www/registry/new-york/ui/checkbox.tsx at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free