checkbox.tsx — ui Source File
Architecture documentation for checkbox.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6356a8b3_f066_5c0c_7c87_9682c7e52c96["checkbox.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 6356a8b3_f066_5c0c_7c87_9682c7e52c96 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 191e4a89_25e4_f7a3_d5fb_d71d101e0990["utils"] 6356a8b3_f066_5c0c_7c87_9682c7e52c96 --> 191e4a89_25e4_f7a3_d5fb_d71d101e0990 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 6356a8b3_f066_5c0c_7c87_9682c7e52c96 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"] 6356a8b3_f066_5c0c_7c87_9682c7e52c96 --> 9c463da6_747b_38dc_586b_cbb4873070b1 style 6356a8b3_f066_5c0c_7c87_9682c7e52c96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { cn } from "@/examples/radix/lib/utils"
import { CheckIcon } from "lucide-react"
import { Checkbox as CheckboxPrimitive } from "radix-ui"
function Checkbox({
className,
...props
}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
return (
<CheckboxPrimitive.Root
data-slot="checkbox"
className={cn(
"border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
className
)}
{...props}
>
<CheckboxPrimitive.Indicator
data-slot="checkbox-indicator"
className="grid place-content-center text-current transition-none [&>svg]:size-3.5"
>
<CheckIcon />
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
)
}
export { Checkbox }
Domain
Subdomains
Functions
Dependencies
- lucide-react
- radix-ui
- react
- utils
Source
Frequently Asked Questions
What does checkbox.tsx do?
checkbox.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in checkbox.tsx?
checkbox.tsx defines 1 function(s): Checkbox.
What does checkbox.tsx depend on?
checkbox.tsx imports 4 module(s): lucide-react, radix-ui, react, utils.
Where is checkbox.tsx in the architecture?
checkbox.tsx is located at apps/v4/examples/radix/ui/checkbox.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free