@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.1 kB
Source Map (JSON)
{"version":3,"file":"components\\ui\\label.cjs","sources":["webpack://@arolariu/components/./src/components/ui/label.tsx"],"sourcesContent":["\r\n\r\nimport * as React from \"react\";\r\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\r\nimport { cn } from \"./../../lib/utils\";\r\n\r\nfunction Label({\r\n className,\r\n ...props\r\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\r\n return (\r\n <LabelPrimitive.Root\r\n data-slot=\"label\"\r\n className={cn(\r\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\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport { Label };\r\n"],"names":["Label","className","props","LabelPrimitive","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,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"}