Install Breeze
This commit is contained in:
20
resources/js/Components/InputLabel.tsx
Normal file
20
resources/js/Components/InputLabel.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user