Version: 5.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 |