Home / Function/ FieldLegend() — ui Function Reference

FieldLegend() — ui Function Reference

Architecture documentation for the FieldLegend() function in field.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  92e93343_688b_2582_bc0b_26765cf2b330["FieldLegend()"]
  7f790981_1f57_27c9_6405_8857e98ddfef["field.tsx"]
  92e93343_688b_2582_bc0b_26765cf2b330 -->|defined in| 7f790981_1f57_27c9_6405_8857e98ddfef
  style 92e93343_688b_2582_bc0b_26765cf2b330 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/field.tsx lines 20–33

function FieldLegend({
  className,
  variant = "legend",
  ...props
}: React.ComponentProps<"legend"> & { variant?: "legend" | "label" }) {
  return (
    <legend
      data-slot="field-legend"
      data-variant={variant}
      className={cn("cn-field-legend", className)}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does FieldLegend() do?
FieldLegend() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/field.tsx.
Where is FieldLegend() defined?
FieldLegend() is defined in apps/v4/registry/bases/base/ui/field.tsx at line 20.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free