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 a9453eeb_fc89_6086_6e4c_6f430caa3f04["checkbox.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] a9453eeb_fc89_6086_6e4c_6f430caa3f04 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"] a9453eeb_fc89_6086_6e4c_6f430caa3f04 --> 9c463da6_747b_38dc_586b_cbb4873070b1 ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"] a9453eeb_fc89_6086_6e4c_6f430caa3f04 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] a9453eeb_fc89_6086_6e4c_6f430caa3f04 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style a9453eeb_fc89_6086_6e4c_6f430caa3f04 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Checkbox as CheckboxPrimitive } from "radix-ui"
import { cn } from "@/registry/bases/radix/lib/utils"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
function Checkbox({
className,
...props
}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
return (
<CheckboxPrimitive.Root
data-slot="checkbox"
className={cn(
"cn-checkbox peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
className
)}
{...props}
>
<CheckboxPrimitive.Indicator
data-slot="checkbox-indicator"
className="cn-checkbox-indicator grid place-content-center text-current transition-none"
>
<IconPlaceholder
lucide="CheckIcon"
tabler="IconCheck"
hugeicons="Tick02Icon"
phosphor="CheckIcon"
remixicon="RiCheckLine"
/>
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
)
}
export { Checkbox }
Domain
Subdomains
Functions
Dependencies
- icon-placeholder
- 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 ComponentRegistry domain, ChartRegistry 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): icon-placeholder, radix-ui, react, utils.
Where is checkbox.tsx in the architecture?
checkbox.tsx is located at apps/v4/registry/bases/radix/ui/checkbox.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free