Action button

Core

A compact button for frequent toolbar actions.

pnpm dlx shadcn@latest add https://wui.alann.works/r/action-button.json

API Reference

PropTypeDefault
label*stringrequired
successLabelstring—
pendingLabelstring—
onAction*() => void | Promise<void>required
resetAfterMsnumber—
onActionError(error: unknown) => void—
Categories
actions
Dependencies
lucide-reactmotion