FormFootercomponent
FormFooter({ children, submit }: FormFooterProps): ReactElement| Param | Type | |
|---|---|---|
props | FormFooterProps | Props for FormFooter, the submit-button-and-message footer for a form. required |
.submit | ReactNode |
| Return | |
|---|---|
ReactElement | A footer element with the submit row and form message. |
Show a form footer with a submit button and the form's error message.
- Renders a row containing a
SubmitButton(and any extra buttons passed aschildren). - Renders a
<FormMessage>beneath the buttons showing any error set on the form.
Examples
<FormFooter submit="Save" />