@littlespoon/typography
v1.7.0
Published
Little Spoon typography
Downloads
1,026
Readme
@littlespoon/typography
Install
Yarn:
yarn add @littlespoon/typography
npm:
npm install @littlespoon/typography --save
Usage
Import component:
import Typography from '@littlespoon/typography'
Render paragraph:
<Typography>This is a paragraph</Typography>
Render paragraph styled as h1:
<Typography variant="h1">This is a paragraph</Typography>
Render h1:
<Typography as="h1">This is a heading</Typography>
Render h1 styled as h2:
<Typography as="h1" variant="h2">
This is a heading
</Typography>