Text
The Text component is a primitive typographic component that renders as a<span> by default. Use it for inline text elements.
Import
Usage
Props
Text accepts all Box props.React.ElementType
default:"'span'"
Render as a different HTML element
string
default:"'default'"
Text style variant from
theme.textThemeUIStyleObject
Theme-aware style object
Theme Integration
Text variants are defined intheme.text:
Examples
Basic Text
Styled Text
Text Variants
As Different Element
Heading
The Heading component is used for headings and titles. It renders as an<h2> element by default.
Import
Usage
Props
Heading extends Box props and includes all heading element attributes.'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
default:"'h2'"
HTML heading level
string
default:"'heading'"
Text style variant from
theme.textThemeUIStyleObject
Theme-aware style object
Default Styles
The Heading component applies these default styles:Theme Integration
Define heading styles in your theme:Examples
Heading Levels
Styled Heading
Heading Variants
Heading with Gradient
Paragraph
The Paragraph component is a typographic component for body text that renders as a<p> element.
Import
Usage
Props
Paragraph extends Box props and includes all paragraph element attributes.React.ElementType
default:"'p'"
Render as a different HTML element
string
default:"'paragraph'"
Text style variant from
theme.textThemeUIStyleObject
Theme-aware style object
