Skip to main content

Interface: ToolbarActionProps

Defined in: widgets/toolbarAction.tsx:53

Props for ToolbarAction component.

See

ToolbarAction

Extends

Properties

PropertyTypeDescriptionInherited from

children?

ReactNode

Action content.

className?

string

Additional CSS class for the component.

ToolbarActionStyleProps.className

disabled?

boolean

Whether the action is disabled.

ToolbarActionStyleProps.disabled

hotkey?

null | `Alt+${Capitalize<string>}` | `Meta+${Capitalize<string>}` | `Shift+${Capitalize<string>}` | `None+${Capitalize<string>}` | `Mod+${Capitalize<string>}` | `Ctrl+${Capitalize<string>}`

Keyboard hotkey for the action when it's mounted.

Passing null disables a default hotkey if there is one.

ToolbarActionStyleProps.hotkey

onSelect?

() => void

Handler to call when the action is selected (button clicked or menu item selected).

title?

string

Title for the action button or menu item.

ToolbarActionStyleProps.title