Version: 4.xx.xx
Swizzle Ready
Import
<ImportButton>
is compatible with the useImport
hook and is meant to be used as it's upload button.
It uses Ant Design's <Button>
and <Upload>
components. It wraps a <Button>
component with an <Upload>
component and accepts properties for <Button>
and <Upload>
components separately.
Good to know:
You can swizzle this component to customize it with the Refine CLI
Usage​
localhost:3000
Properties​
hideText​
hideText
is used to hide the text of the button. When its true
, only the button icon will be visible.
localhost:3000
API Reference​
Properties​
Property | Type | Description | Default |
---|---|---|---|
hideText |
| Whether should hide the text and show only the icon or not. |
|
loading |
| Set the loading status of button | |
uploadProps ﹡ | Sets the button type | ||
buttonProps ﹡ | Sets props of the button |