Skip to content

BulkActionBar

BulkActionBar(props): Element | null

Defined in: packages/ui/src/components/bulk-action-bar.tsx:33

Toolbar that appears when rows are selected in a DataTable.

Displays the selected row count, action buttons for each BulkAction, and a “Clear” button to deselect all rows. Actions are rendered via the UI plugin’s button slot. Hidden automatically when selectedCount is zero.

BulkActionBarProps

See BulkActionBarProps.

Element | null

<BulkActionBar
selectedCount={selectedRows.length}
actions={[
{ label: "Delete", icon: TrashIcon },
{ label: "Publish" },
]}
onAction={(action) => handleBulk(action, selectedRows)}
onClearSelection={() => clearSelection()}
/>