interface IconProps {
    className?: string;
    color?: "inherit" | "primary" | "disable" | "mid-emphasis" | "surface-primary" | "surface-secondary";
    icon: IconType;
    iconSize?: "small" | "extra-extra-small" | "extra-small" | "medium" | "large" | "extra-large" | "3-extra-large";
    isDisabled?: boolean;
    onClick?: ((e?) => void);
}

Properties

className?: string

Custom class to give the html component

color?: "inherit" | "primary" | "disable" | "mid-emphasis" | "surface-primary" | "surface-secondary"

Font color of the icon. 'inherit' will be unstyled and use the color of the parent element.

icon: IconType

Icon to display

iconSize?: "small" | "extra-extra-small" | "extra-small" | "medium" | "large" | "extra-large" | "3-extra-large"

Icon size

isDisabled?: boolean

Is disabled state for onClick (does not affect color)

onClick?: ((e?) => void)

onClick callback

Type declaration

    • (e?): void
    • onClick callback

      Parameters

      • Optional e: MouseEvent<Element, MouseEvent>

      Returns void

Generated using TypeDoc