Properties of a Button component displayed by the toolbar.

interface ButtonProps {
    ariaLabel?: string;
    children?: ReactElement<DropdownButtonChildrenProps>;
    color?:
        | "inherit"
        | "primary"
        | "secondary"
        | "success"
        | "error"
        | "info"
        | "warning";
    disabled?: boolean;
    icon?: ReactNode;
    onClick: () => void;
    size?: number | "small" | "medium" | "large";
    text?: string;
    tooltip?: string;
    variant?: "text" | "outlined" | "contained";
}

Properties

ariaLabel?: string

Aria label.

children?: ReactElement<DropdownButtonChildrenProps>

Chidren to be displayed in this button if this button should be a DropdownButton

color?:
    | "inherit"
    | "primary"
    | "secondary"
    | "success"
    | "error"
    | "info"
    | "warning"

The button color.

disabled?: boolean

Set to true to disable this button.

icon?: ReactNode

Icon to be displayed in this button.

onClick: () => void

Callback that will be called when this button has been clicked.

size?: number | "small" | "medium" | "large"

Size of this button.

text?: string

Text to be displayed in this button.

tooltip?: string

A tooltip of this button.

variant?: "text" | "outlined" | "contained"

The button variant.