vat_wms/resources/js/Components/InputLabel.tsx
2025-05-13 12:32:55 +02:00

22 lines
385 B
TypeScript

import React, { PropsWithChildren } from 'react';
interface Props {
value?: string;
htmlFor?: string;
}
export default function InputLabel({
value,
htmlFor,
children,
}: PropsWithChildren<Props>) {
return (
<label
className="block font-medium text-sm text-gray-700 dark:text-gray-300"
htmlFor={htmlFor}
>
{value || children}
</label>
);
}