Import
<ImportButton> is compatible with the useImport hook and is meant to be used as it's upload button. It uses Material UI <LoadingButton> component and native html <input> element. It wraps a <label> with a <LoadingButton> component and <input> element and accepts it's own properties for separately.
For more information, refer to the
useImportdocumentation โ
You can swizzle this component with the Refine CLI to customize it.
Usageโ
Use it like any other Material UI <LoadingButton>. You can use it with useImport:
Propertiesโ
hideTextโ
hideText is used to show and 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.  |  | 
inputProps ๏นก  |  | ||
svgIconProps  |  | ||
loading  |  | Set the loading status of button  |  | 
It also accepts all props of Material UI Button.