Alpha

Typography

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

Preview

This is a preview

variant

color

weight

400
1<e>
2  This is a preview
3</e>

Anatomy

1<Typography></Typography>

Installation

Note
Please ensure your local environment is fully configured as instructed in the getting started guide.
npm install @rootui/typography

Usage

1import { Typography } from "@rootui/typography";
2
3export default function Page() {
4  return (
5    <Typography>Hello</Typography>
6  )
7}

API Reference

Typography

Prop

Type

Default

variant
'h1' | 'h2' | 'h3' | 'body' |
'body-sm' | 'caption'
'body'

color
'default' | 'subtle' | 'primary' |
'secondary' | 'info' | 'success' |
'warning' | 'danger' | 'magic'
'default'

weight
100 | 200 | 300 | 400 |
500 | 600 | 700 | 800 | 900