Home / File/ label.json — ui Source File

label.json — ui Source File

Architecture documentation for label.json, a json file in the ui codebase.

Entity Profile

Source Code

{
  "name": "label",
  "dependencies": [
    "@radix-ui/react-label"
  ],
  "files": [
    {
      "name": "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\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst labelVariants = cva(\n  \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n)\n\nconst Label = React.forwardRef<\n  React.ElementRef<typeof LabelPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n    VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n  <LabelPrimitive.Root\n    ref={ref}\n    className={cn(labelVariants(), className)}\n    {...props}\n  />\n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n"
    }
  ],
  "type": "components:ui"
}

Frequently Asked Questions

What does label.json do?
label.json is a source file in the ui codebase, written in json.
Where is label.json in the architecture?
label.json is located at deprecated/www/public/registry/styles/default/label.json (directory: deprecated/www/public/registry/styles/default).

Analyze Your Own Codebase

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

Try Supermodel Free