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

25 lines
482 B
TypeScript
Vendored

import { FunctionComponent } from 'react';
interface FormButtonProps {
children: string;
type: 'button' | 'submit' | 'reset';
isSubmitting?: boolean;
}
const Button: FunctionComponent<FormButtonProps> = ({
children,
type,
isSubmitting = false,
}) => (
// eslint-disable-next-line react/button-has-type
<button
type={type}
className={`btn btn-primary w-full rounded-xl`}
disabled={isSubmitting}
>
{children}
</button>
);
export default Button;