Label() — ui Function Reference
Architecture documentation for the Label() function in label.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5c5d2a37_8730_3a8b_4208_35289a43d0ba["Label()"] 1181a2e1_0123_e096_60be_28986c2244eb["label.tsx"] 5c5d2a37_8730_3a8b_4208_35289a43d0ba -->|defined in| 1181a2e1_0123_e096_60be_28986c2244eb style 5c5d2a37_8730_3a8b_4208_35289a43d0ba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/ui/label.tsx lines 8–22
function Label({
className,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
data-slot="label"
className={cn(
"cn-label flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Label() do?
Label() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/label.tsx.
Where is Label() defined?
Label() is defined in apps/v4/registry/bases/radix/ui/label.tsx at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free