UNPKG

@voilajsx/uikit

Version:

Cross-platform React components with beautiful themes and OKLCH color science

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