Interface WalkingCopyCommandButtonProps

interface WalkingCopyCommandButtonProps {
    command: ICommand<any, any>;
    commandHook?: ICommandHook<any, any>;
    commandState?: any;
    context?: any;
    disableHover?: boolean;
    disabled?: boolean;
    icon?: ReactNode | (() => ReactNode);
    scope?: string;
    selected?: boolean;
    sx?: SxProps<Theme>;
    variant?: CommandButtonType;
}

Hierarchy (view full)

Properties

command: ICommand<any, any>
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
context?: any
disableHover?: boolean
disabled?: boolean
icon?: ReactNode | (() => ReactNode)

Type declaration

    • (): ReactNode
    • Returns ReactNode

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