Interface for CommandToolbarButtonComponent props.

interface IProps {
    args?: ReadonlyJSONObject;
    caption?: string;
    commands: CommandRegistry;
    icon?: LabIcon;
    id: string;
    label?: string | CommandFunc<string>;
    noFocusOnClick?: boolean;
}

Properties

Command arguments

caption?: string

Overrides command caption

commands: CommandRegistry

Application commands registry

icon?: LabIcon

Overrides command icon

id: string

Command unique id

label?: string | CommandFunc<string>

Overrides command label

noFocusOnClick?: boolean

Trigger the button on onMouseDown event rather than onClick, to avoid giving the focus on the button.