Overview

The Typography primitives provide the core elements for adding and managing text within your project, giving you control over structure and formatting. Options include Text, Rich Text, Paragraph, Headings (H1–H6), and Lists, all located in the Typography dropdown menu.

API Reference

Text

The Text primitive is rendered as a span by default, providing a flexible way to insert inline text. The tag property can be used to change it to another HTML element, such as p or h1-6, based on your needs.

PropTypeDefaultDescription
tagselectspanAllows changing the default HTML tag for flexibility.
textstringDefault TextRenders the text value.

Rich Text

Use Rich Text for content that requires formatting, such as paragraphs, links, or bold/italic styles. This primitive doesn’t have a tag prop but allows for rich text content to be inserted or passed programmatically.

PropTypeDefaultDescription
textstringDefault TextRenders rich text content.

Paragraph

The Paragraph primitive is rendered as a p tag by default. It is ideal for blocks of text and does not have a tag prop. Customize it for body copy or descriptive text with full styling options.

PropTypeDefaultDescription
tagselectpAllows changing the default HTML tag.
textstringParagraphRenders the paragraph text value.

Headings (H1–H6)

Use Headings for structured text elements. Each heading level renders by default as h1, h2, h3, etc., and they come with a tag property, allowing for customization of the heading level based on your content hierarchy.

PropTypeDefaultDescription
tagselecth1, h2, h3, h4, h5, h6Allows changing the heading level.
textstringHeading 1Renders the heading text value.

Ordered List

The Ordered List primitive renders as an ol tag. It accepts child elements and comes preconfigured with list items.

PropTypeDefaultDescription
No properties are available for Ordered List.

Unordered List

The Unordered List primitive renders as a ul tag. Like the Ordered List, it accepts child elements and inserts list items by default.

PropTypeDefaultDescription
No properties are available for Unordered List.

List Item

The List Item primitive is rendered as an li element and is typically used within ol or ul lists. By default, it includes a Text primitive set as span.

PropTypeDefaultDescription
No properties are available for Unordered List.

Block Quote

The Block Quote primitive renders as a blockquote tag by default. It is ideal for quoting text or displaying callouts in your design.

PropTypeDefaultDescription
tagselectblockquoteAllows changing the default HTML tag.
textstringBlockquote textRenders the quoted text value.

Code

The Code primitive renders as a code tag by default. It is useful for displaying inline or block code snippets and can be styled as needed for documentation or technical content.

PropTypeDefaultDescription
tagselectcodeAllows changing the default HTML tag.
textstringCode…Renders the code snippet value.

Styling

All Typography primitives can be fully customized through the Style Panel, Global Styles, and Selectors.