<Text variant="body" size="medium" inline={false} subdued={false} el="h2">
Text content
</Text>
Text Props
Depending on the variant, the Text component can accept any valid HTML header, p, or span props, in addition to the ones listed below. See the Text variants section for specifics.el
"h1" | "h2" | "h3" | "h4" | "h5" | "h6"
Only valid when variant="headline". Required when using headline variant.
aiMark
boolean | AiMarkWithTooltipOrPopoverConfig
Only valid when variant="headline". When set, renders the AI mark inline after the headline text. Use true for the sparkle only, or pass tooltip or popover configuration. See AI Mark. Only valid when variant="body".
size
"small" | "medium" | "large" | "xlarge"
default:"medium"
Note: "xlarge" is not available for variant="eyebrow".
Only valid when variant="body".
variant
"body" | "eyebrow" | "headline"
default:"body"