Action button
CoreA compact button for frequent toolbar actions.
pnpm dlx shadcn@latest add https://wui.alann.works/r/action-button.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
label* | string | required |
successLabel | string | — |
pendingLabel | string | — |
onAction* | () => void | Promise<void> | required |
resetAfterMs | number | — |
onActionError | (error: unknown) => void | — |