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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/field.tsx lines 110–126

function FieldLabel({
  className,
  ...props
}: React.ComponentProps<typeof Label>) {
  return (
    <Label
      data-slot="field-label"
      className={cn(
        "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
        "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4",
        "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does FieldLabel() do?
FieldLabel() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/field.tsx.
Where is FieldLabel() defined?
FieldLabel() is defined in apps/v4/registry/new-york-v4/ui/field.tsx at line 110.

Analyze Your Own Codebase

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

Try Supermodel Free