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
Preview
h1. Heading
h2. Heading
h3. Heading
h4. Heading
h5. Heading
h6. Heading
Other variants
Preview
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
Name | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
className | string | - | Override or extend the styles applied to the component |
align | 'center' | 'inherit' | 'justify' | 'left' | 'right' | 'inherit' | Set the text-align on the component. |
component | elementType | - | The component used for the root node. Either a string to use a HTML element or a component. |
gutterBottom | bool | false | If true, the text will have a bottom margin. |
noWrap | bool | false | If 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). |
paragraph | bool | false | If 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