1.0.0-16 • Published 6 years ago

@react-spectre/typography v1.0.0-16

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

@react-spectre/typography

React components for Spectre.css's typography

Installation

yarn add @react-spectre/typography
npm install @react-spectre/typography --save

Usage

Headings

There are 7 components used for headings. H1-H6 for headings from level 1 to 6 and Label to add a label inside any H1-H6.

import { H1, H2, H3, H4, H5, H6, Label } from '@react-spectre/typography'

Headings can have contents by passing children components or setting the contents prop:

<H1>Viewing all users</H1>
<H1 contents="Viewing all users" />

A label can be added to a Heading using the label prop:

<H1 contents="Viewing all users" label="(185 in total)" />

// The following is an alternative to render the same.
<H1 label="(185 in total)">Viewing all users</H1>

// The following is another alternative to render the same.
<H1>
  Viewing all users
  <H1.Label>(185 in total)</H1.Label>
</H1>

// And this one too.
<H1>
  Viewing all users
  <H1.Label contents="(185 in total)" />
</H1>

Made with :heart: by Rubens Mariuzzo.

MIT License

1.0.0-16

6 years ago

1.0.0-15

6 years ago

1.0.0-14

6 years ago

1.0.0-13

6 years ago

1.0.0-12

6 years ago

1.0.0-11

6 years ago

1.0.0-10

6 years ago

1.0.0-9

6 years ago

1.0.0-8

6 years ago

1.0.0-7

6 years ago

1.0.0-6

6 years ago

1.0.0-5

6 years ago

1.0.0-4

6 years ago

1.0.0-3

6 years ago

1.0.0-2

6 years ago

1.0.0-1

6 years ago

1.0.0-0

6 years ago