Skip to Content
Archi-ui 1.0.25 is released 🎉
ComponentsTypography

Typography

Use typography to present your design and content as clearly and efficiently as possible.

Usage

import { Typography } from 'archi-ui'
<Typography>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</Typography> // default 'p' element is used

Heading variants

h1. Heading

h2. Heading

h3. Heading

h4. Heading

h5. Heading
h6. Heading

Other variants

subtitle1. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Blanditiis incidunt, ipsa vitae assumenda exercitationem aperiam molestiae voluptatem non.
subtitle2. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Blanditiis incidunt, ipsa vitae assumenda exercitationem aperiam molestiae voluptatem non.

body1. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Blanditiis incidunt, ipsa vitae assumenda exercitationem aperiam molestiae voluptatem non.

body2. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Blanditiis incidunt, ipsa vitae assumenda exercitationem aperiam molestiae voluptatem non.

caption. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Blanditiis incidunt, ipsa vitae assumenda exercitationem aperiam molestiae voluptatem non.

Typography API

API reference docs for the React Typography component.

Props

NameTypeDefaultDescription
childrennode-The content of the component.
classNamestring-Override or extend the styles applied to the component
align'center' | 'inherit' | 'justify' | 'left' | 'right''inherit'Set the text-align on the component.
componentelementType-The component used for the root node. Either a string to use a HTML element or a component.
gutterBottomboolfalseIf true, the text will have a bottom margin.
noWrapboolfalseIf true, the text will not wrap, but instead will truncate with a text overflow ellipsis. Note that text overflow can only happen with block or inline-block level elements(the element needs to have a width in order to overflow).
paragraphboolfalseIf true, the element will be a paragraph element.
variant'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'inherit' | 'caption'’body1’Applies the theme typography styles.
Last updated on