Skip to content

TextComponentProps

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