{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "label",
  "title": "Label",
  "description": "A label component for form inputs.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/components/ui/label.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"@/stories/lib/utils\";\n\nconst labelVariants = cva(\n  \"flex items-center gap-1 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n  {\n    variants: {\n      size: {\n        xl: \"text-xl\",\n        l: \"text-lg\",\n        m: \"text-base\",\n        s: \"text-sm\",\n      },\n    },\n    defaultVariants: {\n      size: \"m\",\n    },\n  },\n);\n\ninterface LabelProps\n  extends\n    React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>,\n    VariantProps<typeof labelVariants> {\n  icon?: React.ReactNode;\n  badge?: React.ReactNode;\n}\n\nconst Label = React.forwardRef<\n  React.ElementRef<typeof LabelPrimitive.Root>,\n  LabelProps\n>(({ className, size, icon, badge, children, ...props }, ref) => (\n  <LabelPrimitive.Root\n    ref={ref}\n    className={cn(labelVariants({ size }), className)}\n    {...props}\n  >\n    {icon && <span className=\"text-muted-foreground shrink-0\">{icon}</span>}\n    <span>{children}</span>\n    {badge && (\n      <span className=\"rounded bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground shrink-0\">\n        {badge}\n      </span>\n    )}\n  </LabelPrimitive.Root>\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label, labelVariants };\n",
      "type": "registry:ui",
      "target": "components/ui/label.tsx"
    }
  ],
  "type": "registry:ui"
}