Files
spoon/packages/ui/src/label.tsx
T
Gabriel Brown cf7ff2ee4e
Build and Push Next App / quality (push) Failing after 45s
Build and Push Next App / build-next (push) Has been skipped
Initial commit for project Spoon!
2026-06-21 17:52:02 -05:00

22 lines
587 B
TypeScript

'use client';
import type * as React from 'react';
import { Label as LabelPrimitive } from 'radix-ui';
import { cn } from '@spoon/ui';
const Label = ({
className,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) => (
<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 };