Save
<SaveButton> uses Ant Design'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 to customize it with the Refine CLI
Usageโ
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 the <SaveButton> component which includes submitting the form action, button loading, and disable states.
Propertiesโ
hideTextโ
hideText is used to hide the text of the button. When its true, only the button icon will be 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 |
<SaveButton> also accepts all props of Ant Design's Button component.