Text

Usage

Use the Text component to provide the hierarchy and structure of a view by providing the title of each top-level section and its body-level content.

When using a heading, they should:

  • Clearly describe the section of interface they refer to.
  • Highlight the most important pieces of information.
  • Sit at the top of the section of interface they’re referring to.

See the Typography documentation for more information.

Examples

Live Preview

Props

NameDescription Type Default Values
color
The color of the textstringprimaryprimary, secondary
tag-type
The Text component should allow defining the tag in which to wrap the text. Useful for changing the semantic meaning of the text.stringnullp, h1, h2, h3, h4, span, div
text-align
Specifies the text alignmentstringleftcenter, left, right
type
The type property of Text component has 6 types: body, caption, subSectionHeading, sectionHeading and displayHeading.stringbodybody, bodyEmphasis, caption, captionEmphasis, subSectionHeading, sectionHeading, displayHeading

Slots

NameDescription
default
Default content slot