SelectionActionBar
The bulk-action cluster a table renders for itself when selectionActions is a list. It owns the three things every caller was otherwise re-deriving: what the selection is, which actions are worth a button, and the fact that a bulk call is a request that can still be in flight. It takes only a descriptor list and a selection context, so a list that is not a table — a hand-rolled sidebar of rows, say — can render the identical toolbar rather than growing a second one that drifts.
Import
Section titled “Import”import { SelectionActionBar } from "@flanksource/clicky-ui/data";No dedicated Storybook demo is available for this component yet.
The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
actions* |
DataTableSelectionAction<T>[] |
— | — |
className |
string |
— | — |
context* |
DataTableSelectionContext<T> |
— | — |
maxButtons |
number |
— | How many plain buttons stay on the row before the rest collapse. Named dropdowns are never capped — they are what the bar is for. |
showCount |
boolean |
true |
Render the `{n} selected` count and Clear. False when something else is already stating them — DataTable's cross-page scope notice, say. |