BulkDeleteButton

Deletes every selected list row (confirm-gated).

Installation

pnpm dlx shadcn@latest add @chelone/bulk-delete-button

Deletes every selected list row (confirm-gated).

Props

PropTypeDefaultDescription
classNamestring—
confirmColor"primary" | "warning"—
confirmContentReactNode—
confirmTitleReactNode—
iconReactNode—
labelstring—
mutationModeMutationMode—`"undoable"` deletes optimistically with an Undo notification (no confirm dialog): the rows vanish now and the server call is deferred until the Undo window closes. Default (`"pessimistic"`) is confirm-gated.
onClick(e: MouseEvent<HTMLButtonElement>) => void—
refRef<HTMLButtonElement>—
resourcestring—