FieldLabel() — ui Function Reference
Architecture documentation for the FieldLabel() function in field.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 36cfb214_10f9_91ed_d911_d0f17f39b114["FieldLabel()"] 551006c1_8fb3_87d2_d53f_b127c9fc48a9["field.tsx"] 36cfb214_10f9_91ed_d911_d0f17f39b114 -->|defined in| 551006c1_8fb3_87d2_d53f_b127c9fc48a9 style 36cfb214_10f9_91ed_d911_d0f17f39b114 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/field.tsx lines 100–115
function FieldLabel({
className,
...props
}: React.ComponentProps<typeof Label>) {
return (
<Label
data-slot="field-label"
className={cn(
"has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5",
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does FieldLabel() do?
FieldLabel() is a function in the ui codebase, defined in apps/v4/examples/base/ui/field.tsx.
Where is FieldLabel() defined?
FieldLabel() is defined in apps/v4/examples/base/ui/field.tsx at line 100.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free