Skip to main content

Interface: ToolbarActionProps

Defined in: src/widgets/toolbarAction.tsx:51

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 | `Mod+${Capitalize<string>}` | `Ctrl+${Capitalize<string>}` | `Meta+${Capitalize<string>}` | `Alt+${Capitalize<string>}` | `Shift+${Capitalize<string>}` | `None+${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