Skip to content
fabrials/ ui

Interaction

Action button

A single action with pending, error and duplicate-click handling.

0 completed

Installation

Terminal
bunx shadcn@latest add https://ui.fabrials.com/r/action-button.json

API

Prop / exportTypeDescription
action() => Promise<unknown>Action to run.
childrenReactNodeVisible accessible button label.
disabledbooleanDisable when unavailable.

Behavior & compatibility

For WebMCP, pass the same useWebMCP().run call used by the tool interface.

Accessibility

Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is fully keyboard operable.