mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
18 lines
371 B
TypeScript
18 lines
371 B
TypeScript
import { FunctionComponent } from 'react';
|
|
|
|
interface FormLabelProps {
|
|
htmlFor: string;
|
|
children: string;
|
|
}
|
|
|
|
const FormLabel: FunctionComponent<FormLabelProps> = ({ htmlFor, children }) => (
|
|
<label
|
|
className="block uppercase tracking-wide text-sm sm:text-xs font-extrabold my-1"
|
|
htmlFor={htmlFor}
|
|
>
|
|
{children}
|
|
</label>
|
|
);
|
|
|
|
export default FormLabel;
|