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