mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-04-05 18:09:04 +00:00
Begin integration of dotnet backend with biergarten nextjs code
This commit is contained in:
16
Website/src/components/ui/forms/FormError.tsx
Normal file
16
Website/src/components/ui/forms/FormError.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { FunctionComponent } from 'react';
|
||||
|
||||
/**
|
||||
* @example
|
||||
* <FormError>Something went wrong!</FormError>;
|
||||
*/
|
||||
const FormError: FunctionComponent<{ children: string | undefined }> = ({ children }) =>
|
||||
children ? (
|
||||
<div
|
||||
className="my-1 h-3 text-xs font-semibold italic text-error-content"
|
||||
role="alert"
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
) : null;
|
||||
export default FormError;
|
||||
Reference in New Issue
Block a user