
CRUD Table
Tables
Search by name, tag, category or type
Source and install need .
pnpm dlx shadcn@latest add @assembli/bulk-action-barThe floating bar that rises when rows are selected: a rolling count with Clear and Select all, actions with single-key shortcuts and a More menu. Destructive actions ask in place, async ones spin, and a returned result turns the bar into "3 files archived · Undo" with a draining line that pauses on hover. Escape clears; labels fold to icons when narrow.
Other props pass through to the root element.
count*
number
How many items are selected. The bar shows while this is above 0.
total
number
All items that could be selected. Enables "Select all".
noun
{ one: string; other: string }
Default { one: "item", other: "items" }
What's being selected: { one: "issue", other: "issues" }.
onSelectAll
() => void
onClear*
() => void
actions*
BulkAction[]
maxVisible
number
Default 4
Actions shown as buttons before the rest fold into "More".
position
"fixed" | "absolute"
Default "fixed"
fixed floats over the page; absolute floats over the nearest positioned ancestor (a table card, a pane).
shortcuts
boolean
Default true
Let shortcuts and Escape work from anywhere on the page while the bar shows. Defaults to true.
resultDuration
number
Default 5000
How long a result stays up, in ms. Hovering pauses it.
| Prop | Type | Default | Description |
|---|---|---|---|
| count* | number | – | How many items are selected. The bar shows while this is above 0. |
| total | number | – | All items that could be selected. Enables "Select all". |
| noun | { one: string; other: string } | { one: "item", other: "items" } | What's being selected: { one: "issue", other: "issues" }. |
| onSelectAll | () => void | – | |
| onClear* | () => void | – | |
| actions* | BulkAction[] | – | |
| maxVisible | number | 4 | Actions shown as buttons before the rest fold into "More". |
| position | "fixed" | "absolute" | "fixed" | fixed floats over the page; absolute floats over the nearest positioned ancestor (a table card, a pane). |
| shortcuts | boolean | true | Let shortcuts and Escape work from anywhere on the page while the bar shows. Defaults to true. |
| resultDuration | number | 5000 | How long a result stays up, in ms. Hovering pauses it. |