Skip to main content

TextComponentProps

note

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

The TextComponentProps object is used to create a text component.

type TextComponentProps = {
color?: string;
semanticColor?: SemanticColor;
variant?: Variant;
paddingBottom?: string;
weight?: 'book' | 'bold' | 'black';
};

Properties

PropertyTypeDescription
colorstring | undefinedText color. Might not be used by component.
semanticColorSemanticColor | undefinedSemantic color name. Matches color variables used in xpui
variantVariant | undefinedFont variant
paddingBottomstring | undefinedBottom padding size
weight'book' | 'bold' | 'black' | undefinedFont weight