Skip to content

IconComponentProps

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