UNPKG

@arolariu/components

Version:

A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)! 😍

1 lines 1.05 kB
{"version":3,"file":"components\\ui\\label.cjs","sources":["webpack://@arolariu/components/./src/components/ui/label.tsx"],"sourcesContent":["\n\nimport * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"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\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n"],"names":["Label","className","props","LabelPrimitive","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAASA,MAAM,EACbC,SAAS,EACT,GAAGC,OAC8C;IACjD,OACE,WADF,GACE,qCAACC,4BAAAA,IAAmB;QAClB,aAAU;QACV,WAAWC,IAAAA,0BAAAA,EAAAA,EACT,uNACAH;QAED,GAAGC,KAAK;;AAGf"}