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
Property | Type | Description |
---|---|---|
color | string | undefined | Text color. Might not be used by component. |
semanticColor | SemanticColor | undefined | Semantic color name. Matches color variables used in xpui |
variant | Variant | undefined | Font variant |
paddingBottom | string | undefined | Bottom padding size |
weight | 'book' | 'bold' | 'black' | undefined | Font weight |