Open History to see the last commit
1import * as React from 'react'
2import { cx } from './utils'
3β
4type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement> & {
5 className?: string
6}
7β
8const Label = React.forwardRef<HTMLLabelElement, LabelProps>(
9 ({ className, ...props }, ref) => {
10 return (
11 <label
12 className={cx(
13 'text-sm font-medium select-none leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
14 className,
15 )}
16 ref={ref}
17 {...props}
18 />
19 )
20 },
21)
22β
23Label.displayName = 'Label'
24β
25export { Label, type LabelProps }