mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2025-12-17 18:58:10 +00:00
19 lines
488 B
TypeScript
19 lines
488 B
TypeScript
import React from "react";
|
|
|
|
type CustomLabelProps = React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
|
|
const CustomLabel = React.forwardRef<HTMLLabelElement, CustomLabelProps>(
|
|
({ className, ...props }, ref) => {
|
|
return (
|
|
<label
|
|
ref={ref}
|
|
className={`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${className}`}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
);
|
|
CustomLabel.displayName = "CustomLabel";
|
|
|
|
export { CustomLabel };
|