BulkDeleteButton
Deletes every selected list row (confirm-gated).
Installation
pnpm dlx shadcn@latest add @chelone/bulk-delete-buttonDeletes every selected list row (confirm-gated).
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| confirmColor | "primary" | "warning" | — | |
| confirmContent | ReactNode | — | |
| confirmTitle | ReactNode | — | |
| icon | ReactNode | — | |
| label | string | — | |
| mutationMode | MutationMode | — | `"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 | — | |
| ref | Ref<HTMLButtonElement> | — | |
| resource | string | — |