Skip to main content

IconComponentProps

note

This type is deducted from Spotify's internal usage. It may not be accurate and may change in the future.

The IconComponentProps object is used to create an icon component.

type IconComponentProps = {
iconSize?: number;
color?: string;
semanticColor?: SemantiColor;
title?: string;
titleId?: string;
desc?: string;
descId?: string;
autoMirror?: boolean;
};

Properties

PropertyTypeDescription
iconSizenumber | undefinedIcon size
colorstring | undefinedIcon color. Might not be used by component
semanticColorSemanticColor | undefinedSemantic color name. Matches color variables used in xpui
titlestring | undefinedIcon title
titleIdstring | undefinedTitle ID (internal)
descstring | undefinedIcon description
descIdstring | undefinedDescription ID (internal)
autoMirrorboolean | undefinedWhether the icon can be auto mirrored