Files
asm-dashboard/resources/js/Components/InputLabel.tsx
2024-11-09 15:55:56 +01:00

21 lines
457 B
TypeScript

import { LabelHTMLAttributes } from 'react';
export default function InputLabel({
value,
className = '',
children,
...props
}: LabelHTMLAttributes<HTMLLabelElement> & { value?: string }) {
return (
<label
{...props}
className={
`block text-sm font-medium text-gray-700 ` +
className
}
>
{value ? value : children}
</label>
);
}