FieldLegend() — ui Function Reference
Architecture documentation for the FieldLegend() function in field.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 80a29437_8de8_2edc_f52f_43c5001604c6["FieldLegend()"] 9e33818b_568d_f45e_d7d8_26dbc518cbe6["field.tsx"] 80a29437_8de8_2edc_f52f_43c5001604c6 -->|defined in| 9e33818b_568d_f45e_d7d8_26dbc518cbe6 style 80a29437_8de8_2edc_f52f_43c5001604c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui-rtl/field.tsx lines 22–38
function FieldLegend({
className,
variant = "legend",
...props
}: React.ComponentProps<"legend"> & { variant?: "legend" | "label" }) {
return (
<legend
data-slot="field-legend"
data-variant={variant}
className={cn(
"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does FieldLegend() do?
FieldLegend() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/field.tsx.
Where is FieldLegend() defined?
FieldLegend() is defined in apps/v4/examples/base/ui-rtl/field.tsx at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free