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

Relationship Graph

Source Code

apps/v4/examples/base/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/base/ui-rtl/field.tsx.
Where is FieldLabel() defined?
FieldLabel() is defined in apps/v4/examples/base/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