interface IconPropsBase {
    ariaHidden?: boolean;
    ariaLabel?: string;
    className?: string;
    color?: "currentColor" | (keyof FillColors);
    customAttribute?: {
        attribute: string;
        value: string | number;
    };
    fontSize?: number | "inherit";
    isLoading?: boolean;
    role?: "img";
    skeletonSx?: SxProps<Theme>;
    style?: CSSProperties;
    wrapped?: boolean;
}

Hierarchy (view full)

Properties

ariaHidden?: boolean

Aria hidden defaults to true

ariaLabel?: string

Aria-label for the icon (used in combination with role)

className?: string

Override or extend the styles applied to the component

color?: "currentColor" | (keyof FillColors)

Color of the icon.

customAttribute?: {
    attribute: string;
    value: string | number;
}

Used for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".

fontSize?: number | "inherit"

Indicates the font size for the icon. Converts the number value from px to rem.

isLoading?: boolean

If true, a loading skeleton will be rendered instead of the component.

role

The ARIA role of the icon.

skeletonSx?: SxProps<Theme>

Optional CSS properties to style the icon skeleton. This prop allows you to customize the icon's appearance.

style?: CSSProperties

Optional CSS properties to style the icon. This prop allows you to customize the icon's appearance.

wrapped?: boolean

Return svg without wrapping box.