Version: 4.xx.xx
Swizzle Ready
Save
<SaveButton>
uses Material UI <Button>
component. It uses it for presantation purposes only. Some of the hooks that refine has adds features to this button.
Swizzle
You can swizzle this component to customize it with the refine CLI
Usageβ
For example, let's add logic to the <SaveButton>
component with the saveButtonProps
returned by the useForm
hook.
localhost:3000/posts
The useForm
hook exposes saveButtonProps
to be passed to <SaveButton>
component which includes submitting the form action, button loading, and disable states.
Propertiesβ
hideText
β
It is used to show and not show the text of the button. When true
, only the button icon is visible.
localhost:3000
API Referenceβ
Propertiesβ
External Props
It also accepts all props of Material UI Button.