UNPKG

@baseplate-dev/ui-components

Version:

Shared UI component library

14 lines 684 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import { Label as LabelPrimitive } from 'radix-ui'; import { cn } from '#src/utils/index.js'; /** * Renders an accessible label associated with controls. * * https://ui.shadcn.com/docs/components/label */ function Label({ className, ...props }) { return (_jsx(LabelPrimitive.Root, { "data-slot": "label", className: cn('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', className), ...props })); } export { Label }; //# sourceMappingURL=label.js.map