Skip to content

IconComponentProps

IconComponentProps are the props of ReactComponent.IconComponent. The component accepts other SVG props too, such as dangerouslySetInnerHTML.

type IconComponentProps = {
iconSize?: number;
color?: string;
semanticColor?: SemanticColor;
title?: string;
titleId?: string;
desc?: string;
descId?: string;
autoMirror?: boolean;
};
PropDescription
iconSizeThe width and height in pixels.
semanticColorA SemanticColor from Spotify’s theme.
colorA CSS color. Some versions of the component ignore it.
title, descThe accessible title and description. titleId and descId set their element IDs.
autoMirrorMirrors the icon in right-to-left layouts.