lan_kiosk/resources/js/Components/InputLabel.tsx
2025-04-20 22:03:39 +02:00

20 lines
451 B
TypeScript

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