mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Begin integration of dotnet backend with biergarten nextjs code
This commit is contained in:
21
Website/src/components/ui/forms/FormLabel.tsx
Normal file
21
Website/src/components/ui/forms/FormLabel.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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-xs font-extrabold uppercase tracking-wide lg:text-sm"
|
||||
htmlFor={htmlFor}
|
||||
>
|
||||
{children}
|
||||
</label>
|
||||
);
|
||||
|
||||
export default FormLabel;
|
||||
Reference in New Issue
Block a user