FieldLabel() — ui Function Reference
Architecture documentation for the FieldLabel() function in field.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 3f90865c_b83e_0876_e208_b4a6930d0ef0["FieldLabel()"] 2fdb221e_c552_bb16_cfe7_db746ae11988["field.tsx"] 3f90865c_b83e_0876_e208_b4a6930d0ef0 -->|defined in| 2fdb221e_c552_bb16_cfe7_db746ae11988 style 3f90865c_b83e_0876_e208_b4a6930d0ef0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/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/radix/ui/field.tsx.
Where is FieldLabel() defined?
FieldLabel() is defined in apps/v4/examples/radix/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