Save
<SaveButton>
uses Material UI's <Button>
component. It uses it for presantation purposes only. Some of the hooks that Refine has adds features to this button.
You can swizzle this component with the Refine CLI to customize it.
Usage
For example, let's add logic to the <SaveButton>
component with the saveButtonProps
returned by the useForm
hook.
The useForm
hook exposes saveButtonProps
to be passed to <SaveButton>
component which includes submitting the form action, button loading, and disable states.
Properties
hideText
hideText
is used to show or hide the text of the button. When true
, only the button icon is visible.
API Reference
Properties
Property | Type | Description | Default |
---|---|---|---|
hideText |
| Whether should hide the text and show only the icon or not. |
|
onClick |
| Sets the handler to handle click event | |
svgIconProps |
|
It also accepts all props of Material UI Button.