ActionsProps defines the properties for the Actions component,
a semantic container that hosts the batch-level controls of UploadButton and ClearButton
for the FileUpload component.
import { FileUpload, Actions, UploadButton, ClearButton } from '@syncfusion/react-inputs';
export default function App() {
return (
<FileUpload
saveUrl="https://services.syncfusion.com/react/production/api/FileUploader/Save"
removeUrl="https://services.syncfusion.com/react/production/api/FileUploader/Remove"
autoUpload={false}
>
<Actions>
<UploadButton>Upload file</UploadButton>
<ClearButton>Clear file</ClearButton>
</Actions>
</FileUpload>
);
}
The following table outlines the props for the ActionsProps:
| Name | Type | Default | Description |
|---|
| children | node | - | Specifies the row children, which are typically <UploadButton> and <ClearButton>. |
| className | string | - | Specifies an additional CSS class name for the action row. |