@thinkbuff/figma-react
Version:
A Figma React UI components for creating plugins and widgets
25 lines (22 loc) • 658 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import * as LabelPrimitive from '@radix-ui/react-label';
import { cn } from '../../utils/cn.mjs';
const Label = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
LabelPrimitive.Root,
{
ref,
className: cn(
"font-size-11",
"font-medium",
"leading-none",
"cursor-default",
"disabled:cursor-not-allowed disabled:text-figma-disabled",
"peer-disabled:cursor-not-allowed peer-disabled:text-figma-disabled",
className
),
...props
}
));
Label.displayName = LabelPrimitive.Root.displayName;
export { Label };