Files
the-biergarten-app/archive/next-js-web-app/src/components/ui/forms/FormInfo.tsx
2026-04-20 02:30:25 -04:00

19 lines
434 B
TypeScript
Vendored

import { FunctionComponent, ReactNode } from 'react';
interface FormInfoProps {
children: [ReactNode, ReactNode];
}
/**
* @example
* <FormInfo>
* <FormLabel htmlFor="name">Name</FormLabel>
* <FormError>{errors.name?.message}</FormError>
* </FormInfo>;
*/
const FormInfo: FunctionComponent<FormInfoProps> = ({ children }) => (
<div className="flex justify-between">{children}</div>
);
export default FormInfo;