Text

Basic text component with built-in styling and semantic variants.

Installation

Add the component to your project using the following command:

Usage

Import

Import the component and its related parts.

Text Parts

Structure

The expected structure and composition of the component.

Anatomy

You may want to use the render prop to pass a custom link element. See the Customization page for more details.

Custom Element

Props

Each component part, its responsibility, and the props it exposes.

<Text>

This component extends the JSX p element.

Name
Default
Options
`render`
`<p />`
`JSX Element`

<TextLink>

This component extends the JSX a element.

Name
Default
Options
`render`
`<a />`
`JSX Element`

Examples

To create a link, use the TextLink component.

Strong

To create a strong text, use the Strong component.

Code

To create a code text, use the Code component.