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
  8a711325_4a43_9d86_ce5d_51a4a9fb5b28["FieldLabel()"]
  a1bf8a8c_6764_1918_e742_d0d382d2855f["field.tsx"]
  8a711325_4a43_9d86_ce5d_51a4a9fb5b28 -->|defined in| a1bf8a8c_6764_1918_e742_d0d382d2855f
  style 8a711325_4a43_9d86_ce5d_51a4a9fb5b28 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/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}
    />
  )
}

Subdomains

Frequently Asked Questions

What does FieldLabel() do?
FieldLabel() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/field.tsx.
Where is FieldLabel() defined?
FieldLabel() is defined in apps/v4/examples/radix/ui-rtl/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