Skip to content

BulkExportButton

Exports only the currently selected records using dataProvider.getList(). To be used in a ListContext (e.g., inside a <DataTable>).

import { DataTable, BulkExportButton } from '@/components/admin';
<DataTable bulkActionsButtons={<BulkExportButton />} />
PropRequiredTypeDefaultDescription
exporterOptional(data: any[]) => void-Custom exporter function, used to select or augment the exported data
iconOptionalReactNodeDownload iconCustom icon
labelOptionalstringra.action.exporti18n key
metaOptionalobject-Custom meta to pass to dataProvider.getList()

Additional props are passed to the underlying button (e.g., className).

See the <List exporter> documentation for details on the exporter function.