<Button/>
The button with a custom onClick listener that allows for easy navigation between pages and dynamic rendering of fields in a FieldArray.
- onClick?: (e: MouseEvent<HTMLButtonElement>) => (void | typeof NextPage | typeof PrevPage | string)- the function called on the current form data and the mouse event. If ever it returns- NextPage, the form transitions to the next page. If it returns- PrevPage, the form transitions to the previous page. If it returns a- string, it will look push to a- FieldArrayvalue using the first item in it as template.
- as?: React.FC- the function component to be rendered in place of the native- buttonelement.
- the React-extended props of the native HTML buttonelement and any other props ifasis provided.