Home / Function/ FieldLabel() — ui Function Reference

FieldLabel() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5337551f_3a9d_37e9_0b45_226dc2616fcb["FieldLabel()"]
  3e9ca722_9978_f84a_9c4c_f8d4a9ad469e["field.tsx"]
  5337551f_3a9d_37e9_0b45_226dc2616fcb -->|defined in| 3e9ca722_9978_f84a_9c4c_f8d4a9ad469e
  style 5337551f_3a9d_37e9_0b45_226dc2616fcb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/field.tsx lines 93–108

function FieldLabel({
  className,
  ...props
}: React.ComponentProps<typeof Label>) {
  return (
    <Label
      data-slot="field-label"
      className={cn(
        "cn-field-label group/field-label peer/field-label flex w-fit leading-snug",
        "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free