import { Button } from "antd"; import { ComponentProps, FC } from "react"; export interface ISubmitProps extends Partial> { /** * Disable Form.Item styling. */ noStyle?: boolean; /** * Title on the button; goes through react-i18next. */ label: string | string[]; } /** * Button used to submit a form in any way. All fields must be valid to enable this button. * * Internally: * * - checks all fields if they're required and filled up * - checks for validation errors on fields * * Some interesting props: * * - **form** as antd Form instance (usually as Form.useForm()) * - **title** of the button (goes through translation as is) * - other **props** goes to the underlying Antd Button * * Button props: * * - **icon** to define Button's icon * - **onClick** if you need to somehow handle button by hand * * Others: * * - https://ant.design/components/button/ * - https://ant.design/components/form/#API */ export declare const Submit: FC;