Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

label.tsx

22 lines602 Bytes

1import * as React from 'react'
2import * as LabelPrimitive from '@radix-ui/react-label'
3​
4import { cn } from '../../lib/utils'
5​
6function Label({
7 className,
8 ...props
9}: React.ComponentProps<typeof LabelPrimitive.Root>) {
10 return (
11 <LabelPrimitive.Root
12 data-slot="label"
13 className={cn(
14 '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',
15 className,
16 )}
17 {...props}
18 />
19 )
21​
22export { Label }