UNPKG

envoc-form

Version:

Envoc form components

12 lines (11 loc) 546 B
import { MouseEventHandler } from 'react'; export interface StandardFormActionsProps { /** Allow the form to be submitted without any changes. By default this is not allowed. */ allowPristineSubmit?: boolean; /** The cancel button's `onClick`. * @defaultValue `window.history.back()` */ handleCancel?: MouseEventHandler<HTMLButtonElement>; } /** Standard submit and cancel buttons. */ export default function StandardFormActions({ allowPristineSubmit, handleCancel, }: StandardFormActionsProps): JSX.Element;