Home / Function/ Label() — ui Function Reference

Label() — ui Function Reference

Architecture documentation for the Label() function in label.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b26667c1_3053_b8cb_7d5e_46a0f4566907["Label()"]
  371374b9_b385_cbef_188a_25878dc87012["label.tsx"]
  b26667c1_3053_b8cb_7d5e_46a0f4566907 -->|defined in| 371374b9_b385_cbef_188a_25878dc87012
  style b26667c1_3053_b8cb_7d5e_46a0f4566907 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/label.tsx lines 8–22

function Label({
  className,
  ...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
  return (
    <LabelPrimitive.Root
      data-slot="label"
      className={cn(
        "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free