Text

Dark Mode

Text is the primary component for displaying text of any kind.
It provides a set of variants in order to fit for any use case.

Props

Name
Type
Default
Description
align
array, string
Sets the text-align
as
string, element, elementType, func
div
Any valid React element, function, or a string specifying a name for an HTML element
children
node
A JSX node
color
array, string
Sets the font color
extend
object, func, array
Additional styles, use with caution
subStyle
array, string
Sets the font variant substyle
transform
array, string
Sets the text-transform
variant
array, string
Sets the font variants

Examples

Responsive Variants

Custom Color

Align & Transform

Nested Text

Inherited Color

Changelog

08. Apr 2022

  • Switched to our new brand typeface Pangea
  • Removed the
    elm
    variant since it was a duplicate of
    ash