UNPKG

envoc-form

Version:

Envoc form components

14 lines (13 loc) 573 B
/// <reference types="react" /> export interface FormActionsProps { /** 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?: () => void; /** Whether both buttons should be disabled. */ disabled?: boolean; } /** Standard cancel and submit buttons. */ export default function FormActions({ allowPristineSubmit, handleCancel, disabled, }: FormActionsProps): JSX.Element;