BulkUpdateButton
Applies a field update to every selected list row.
Installation
pnpm dlx shadcn@latest add @chelone/bulk-update-buttonApplies a field update to every selected list row.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| confirmColor | "primary" | "warning" | — | |
| confirmContent | ReactNode | — | |
| confirmTitle | ReactNode | — | |
| data | Partial<LooseRecord> | — | |
| icon | ReactNode | — | |
| label | string | — | |
| mutationMode | MutationMode | — | `"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. |
| onClick | MouseEventHandler<HTMLButtonElement> | — | |
| ref | Ref<HTMLButtonElement> | — | |
| resource | string | — | |
| variant | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | — |