185 Pro components and page blocks

Get Pro

Updated

Bulk Select

Pro

Preview

Customize

Accent
Stagger18ms
Undo timeout5s
Radius24px

Installation

Pro

Bulk Select is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/bulk-select

Usage

import { BulkSelect } from "@/components/uibrik/bulk-select/bulk-select";​const items = [  { id: "1", title: "Maya Chen", subtitle: "Final cut for Thursday", meta: "9:41", avatar: "/registry/bulk-select/maya.svg" },  { id: "2", title: "Jonas Weber", subtitle: "Lisbon, flights confirmed", meta: "8:12", avatar: "/registry/bulk-select/jonas.svg" },  // …5 more];​const actions = [  { id: "archive", label: "Archive", icon: <IconArchive />, past: "archived", removes: true },  { id: "assign", label: "Assign", icon: <IconUserPlus />, past: "assigned" },  // …1 more];​<BulkSelect  items={items}  actions={actions}  accent="#2563eb"  stagger={18}  undoTimeout={5}  selectAll  radius={24}  onAction={(actionId, ids) => {}}  onUndo={(actionId, ids) => {}}  // selected={["…"]}  // defaultSelected={["…"]}  // onSelectedChange={(ids) => {}}/>

Where to use Bulk Select

  • Inboxes and queues

    Shift-click ranges and a live count make clearing dozens of rows quick and certain.

    Pairs with Swipe Rows

  • Admin tables

    Tinting the rows an action will touch shows its reach before anything happens.

    Pairs with Data Table

  • Safe bulk deletes

    Avatars flying into the bar and a one-tap Undo make a big change easy to take back.

    Pairs with Inline Confirm

Props

BulkSelect
accent
Type string
"#2563eb"
Colour of the checkboxes and the selected rows' tint.
stagger
Type number
18
Delay between rows when a range ticks or clears in a wave.
undoTimeout
Type number
5
Seconds the confirmation stays before the bar leaves. Pointing at it pauses the clock.
selectAll
Type boolean
true
A Select all row above the list.
radius
Type number
24
Corner radius of the panel.
itemsrequired
Type { id: string; title: string; subtitle?: string; meta?: string; avatar?: string; initials?: string }[]
–
Rows, in order. Avatars fall back to the title's initials.
actionsrequired
Type { id: string; label: string; icon?: ReactNode; past?: string; removes?: boolean; destructive?: boolean }[]
–
Toolbar actions. `removes` collapses the rows and flies their avatars into the bar; `destructive` tints the rows red while pointed at; `past` words the confirmation ("6 archived").
selected / defaultSelected / onSelectedChange
Type string[] / string[] / (ids) => void
–
Selected ids, controlled or not.
onAction
Type (actionId, ids) => void
–
Runs when an action is pressed, with the ids it applies to.
onUndo
Type (actionId, ids) => void
–
Runs when Undo is pressed. Removed rows come back selected.
className
Type string
–
Classes for the panel.