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