@easy-shadcn/react
Version:
Use shadcn/ui easy&enhance like component library
21 lines (18 loc) • 603 B
JavaScript
import * as React from 'react';
import * as LabelPrimitive from '@radix-ui/react-label';
import { cva } from 'class-variance-authority';
import { cn } from '@easy-shadcn/utils';
import { jsx } from 'react/jsx-runtime';
var labelVariants = cva(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
);
var Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
LabelPrimitive.Root,
{
ref,
className: cn(labelVariants(), className),
...props
}
));
Label.displayName = LabelPrimitive.Root.displayName;
export { Label };