UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Radix UI. TypeScript-first, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

16 lines (15 loc) • 633 B
"use client"; import { jsx } from "react/jsx-runtime"; import { Root } from "@radix-ui/react-label"; import { cva } from "class-variance-authority"; import { forwardRef } from "react"; import { cn } from "../../lib/utilities.js"; const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"); const Label = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, { ref: ref, className: cn(labelVariants(), className), ...props })); Label.displayName = Root.displayName; export { Label }; //# sourceMappingURL=label.js.map