| 1 |
import * as React from "react"; |
| 2 |
|
| 3 |
export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {} |
| 4 |
|
| 5 |
const Label = React.forwardRef<HTMLLabelElement, LabelProps>( |
| 6 |
({ className = "", ...props }, ref) => { |
| 7 |
return ( |
| 8 |
<label |
| 9 |
ref={ref} |
| 10 |
className={`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-900 dark:text-white ${className}`} |
| 11 |
{...props} |
| 12 |
/> |
| 13 |
); |
| 14 |
}, |
| 15 |
); |
| 16 |
Label.displayName = "Label"; |
| 17 |
|
| 18 |
export { Label }; |
| 19 |
|