Bulk Actions Bar

Floating Tailwind selection bar that appears once rows are selected, showing the count, your action buttons and a clear button. Sticks to the bottom edge.

src/registry/ui/bulk-actions-bar.tsx/r/bulk-actions-bar.json

Installation#

bash
npx shadcn@latest add @minidev/bulk-actions-bar

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/bulk-actions-bar.json

Usage#

tsx
import { BulkActionsBar } from "@/components/ui/bulk-actions-bar"

export function Example() {
  return (
    <BulkActionsBar count={3} onClear={() => {}}>
      <Button size="sm" variant="outline">Archive</Button>
      <Button size="sm" variant="outline" className="text-danger border-danger/40">Delete</Button>
    </BulkActionsBar>
  )
}

API reference#

BulkActionsBar props
PropTypeDefault
count*number-
childrenReact.ReactNode-
onClear() => void-
classNamestring-

* required

Dependencies#

npm

React only

Built from

Examples#

All data table components

Learn more