Skip to content

Interface ActionProps ​

Source: Actions.tsx

Extended by ​

Properties ​

actionId? ​

optional actionId?: string

ID of the action.


label? ​

optional label?: string

Label of the action.


icon? ​

optional icon?: string | object

Icon for the action.


shortcut? ​

optional shortcut?: string[]

Keyboard shortcut for the action.


onTrigger? ​

optional onTrigger?: (event?: Event, triggerParams?: unknown, ...args: unknown[]) => void

Function that handles the trigger event for the action.

Parameters ​

event? ​

Event

triggerParams? ​

unknown

args ​

...unknown[]

Returns ​

void


children? ​

optional children?: ReactNode


disabled? ​

optional disabled?: boolean

Whether the action should be disabled.

Built by Prozilla