Interface CommandToolbarPopupButtonProps

interface CommandToolbarPopupButtonProps {
    commandHook?: ICommandHook<any, any>;
    commandState?: any;
    commands: CommandMap;
    context?: any;
    disableHover?: boolean;
    disabled?: boolean;
    icon?: ReactNode | (() => ReactNode);
    parentFloat: FloatReference;
    scope?: string;
    selected?: boolean;
    sx?: SxProps<Theme>;
    variant?: CommandButtonType;
}

Hierarchy (view full)

Properties

commandHook?: ICommandHook<any, any>

Allow for listeners against a specific buttons execute rather than the command. This is useful when know the specific button that executed a command is required. (For example when closing menus or restoring focus)

commandState?: any

Optional state for this specific command button.

Default Value

to undefined
commands: CommandMap
context?: any
disableHover?: boolean
disabled?: boolean
icon?: ReactNode | (() => ReactNode)

Type declaration

    • (): ReactNode
    • Returns ReactNode

parentFloat: FloatReference
scope?: string

Optional string to enable the command label to be configured based on the scope of how it is being used.

selected?: boolean
sx?: SxProps<Theme>

MUI SX props

How the button will be styles.

Default Value

CommandButtonType.Toolbar