Skip to content

ActionButtonProps

ActionButtonProps = object & Omit<ButtonSlotProps, ActionButtonControlledProps>

Defined in: packages/ui/src/types.ts:1038

Props for the ActionButton component.

Wraps a @cfast/actions action with permission-aware behavior and optional confirmation dialog. Extends ButtonSlotProps (excluding internally controlled props) so all button styling options are available.

action: ActionHookResult

Action hook result from useActions(), providing permission status and submit function.

children: ReactNode

Button label content.

optional confirmation: string | ConfirmOptions

Confirmation message or options shown before executing the action.

optional whenForbidden: WhenForbidden

Behavior when the action is not permitted. Defaults to “disable”.