mirror of
https://github.com/anna-sara/lan_kiosk
synced 2025-10-26 13:07:14 +01:00
20 lines
457 B
TypeScript
20 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>
|
|
);
|
|
}
|