Skip to content

TextComponentProps

TextComponentProps are the props of ReactComponent.TextComponent. The text is its children.

type TextComponentProps = {
color?: string;
semanticColor?: SemanticColor;
variant?: Variant;
paddingBottom?: string;
weight?: 'book' | 'bold' | 'black';
};
PropDescription
variantA Variant type style.
semanticColorA SemanticColor from Spotify’s theme.
colorA CSS color. Some versions of the component ignore it.
weightThe font weight.
paddingBottomThe space below the text, as a CSS length.