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.
Type Declaration
Section titled “Type Declaration”action
Section titled “action”action:
ActionHookResult
Action hook result from useActions(), providing permission status and submit function.
children
Section titled “children”children:
ReactNode
Button label content.
confirmation?
Section titled “confirmation?”
optionalconfirmation:string|ConfirmOptions
Confirmation message or options shown before executing the action.
whenForbidden?
Section titled “whenForbidden?”
optionalwhenForbidden:WhenForbidden
Behavior when the action is not permitted. Defaults to “disable”.
- WhenForbidden for the permission behavior modes.
- ConfirmOptions for confirmation dialog configuration.
- ButtonSlotProps for the inherited button styling props.