BulkUpdateButton

Applies a field update to every selected list row.

Installation

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

Applies a field update to every selected list row.

Props

PropTypeDefaultDescription
classNamestring—
confirmColor"primary" | "warning"—
confirmContentReactNode—
confirmTitleReactNode—
dataPartial<LooseRecord>—
iconReactNode—
labelstring—
mutationModeMutationMode—`"undoable"` updates optimistically with an Undo notification (no confirm dialog): the rows patch now and the server call is deferred until the Undo window closes. Default (`"pessimistic"`) is confirm-gated.
onClickMouseEventHandler<HTMLButtonElement>—
refRef<HTMLButtonElement>—
resourcestring—
variant"link" | "default" | "destructive" | "outline" | "secondary" | "ghost"—