{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "label",
  "type": "registry:ui",
  "title": "Label",
  "description": "Names a form control above, around, or beside it.",
  "categories": [
    "forms"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/label.tsx",
      "type": "registry:ui",
      "target": "components/ui/label.tsx",
      "content": "import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/sprout/classes';\n\nexport type LabelProps = ComponentProps<'label'>;\n\nexport function Label({ className, ...props }: LabelProps) {\n  return <label data-slot=\"label\" className={cn('sprout-label', className)} {...props} />;\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-label": {
        "min-width": "0",
        "color": "var(--sprout-text)",
        "font-family": "var(--sprout-font)",
        "font-size": "var(--sprout-text-sm)",
        "overflow-wrap": "anywhere",
        "user-select": "none",
        "align-items": "center",
        "gap": "8px",
        "margin": "0",
        "font-weight": "500",
        "line-height": "1rem",
        "display": "flex"
      },
      ".sprout-label:has( > :is([role=\"checkbox\"], [role=\"switch\"], [role=\"radio\"], input[type=\"checkbox\"], input[type=\"radio\"])), :is([role=\"checkbox\"], [role=\"switch\"], [role=\"radio\"], input[type=\"checkbox\"], input[type=\"radio\"]) + .sprout-label": {
        "cursor": "pointer",
        "line-height": "1.25rem"
      },
      ".sprout-label:has( > :is(textarea, select, input:not([type=\"checkbox\"], [type=\"radio\"], [type=\"hidden\"]), [data-slot=\"input\"], [data-slot=\"select-trigger\"], [contenteditable]))": {
        "flex-direction": "column",
        "align-items": "stretch",
        "gap": "6px"
      },
      ".sprout-label:has(:disabled, [data-disabled]:not([data-disabled=\"false\"]))": {
        "color": "var(--sprout-muted)",
        "cursor": "not-allowed"
      },
      ":is(input, textarea, select, button):disabled ~ .sprout-label, :is([role], [data-slot])[data-disabled]:not([data-disabled=\"false\"]) ~ .sprout-label, .sprout-label:has( + :is(:is(input, textarea, select, button):disabled, [data-disabled]:not([data-disabled=\"false\"])))": {
        "cursor": "not-allowed",
        "opacity": ".5"
      },
      ":where([data-slot=\"field\"][data-disabled]:not([data-disabled=\"false\"]), fieldset:disabled) .sprout-label": {
        "opacity": ".5",
        "pointer-events": "none"
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-label": {
          "transition": "color var(--sprout-motion-fast) var(--sprout-motion-ease),\n        opacity var(--sprout-motion-fast) var(--sprout-motion-ease)"
        }
      },
      ".sprout-label:has([aria-invalid=\"true\"])": {
        "color": "var(--sprout-danger)"
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/label/",
  "meta": {
    "source": "packages/sprout/src/components/label.tsx"
  }
}
