Renders the row of buttons that ends a form, in the pages and dialogs that edit something.
f
FormActions(unnamed 0: FormActionsProps): React.JSX.Element
Renders the Cancel button, if any, then the children, aligned right. The
Cancel button is type="button", so it never submits the form.
I
FormActionsProps
Passed to FormActions by a form, with its submit button as child.
-
cancelLabel: ReactNode
Replaces the "Cancel" label.
- children: ReactNode
-
disabled: boolean
Disables the Cancel button only, not the children.
-
onCancel: () => void
Adds a Cancel button, which calls it.
Usage
import * as mod from "src/components/form/FormActions.tsx";