FieldLabel() — ui Function Reference
Architecture documentation for the FieldLabel() function in field.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5ffaac4f_2c94_8c75_1a4e_0952cb76a056["FieldLabel()"] 92084144_173d_4731_d12f_b79cfad72514["field.tsx"] 5ffaac4f_2c94_8c75_1a4e_0952cb76a056 -->|defined in| 92084144_173d_4731_d12f_b79cfad72514 style 5ffaac4f_2c94_8c75_1a4e_0952cb76a056 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/ui/field.tsx lines 110–126
function FieldLabel({
className,
...props
}: React.ComponentProps<typeof Label>) {
return (
<Label
data-slot="field-label"
className={cn(
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4",
"has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does FieldLabel() do?
FieldLabel() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/field.tsx.
Where is FieldLabel() defined?
FieldLabel() is defined in deprecated/www/registry/new-york/ui/field.tsx at line 110.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free