mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Refactor api requests and components out of pages
This commit is contained in:
@@ -5,9 +5,13 @@ interface FormLabelProps {
|
||||
children: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @example
|
||||
* <FormLabel htmlFor="name">Name</FormLabel>;
|
||||
*/
|
||||
const FormLabel: FunctionComponent<FormLabelProps> = ({ htmlFor, children }) => (
|
||||
<label
|
||||
className="block uppercase tracking-wide text-sm sm:text-xs font-extrabold my-1"
|
||||
className="my-1 block text-sm font-extrabold uppercase tracking-wide sm:text-xs"
|
||||
htmlFor={htmlFor}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user