# @react-spectre/typography

> React components for Spectre.css's typography.

Latest version **1.0.0-16** (published 2018-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-spectre/typography
pnpm add @react-spectre/typography
yarn add @react-spectre/typography
bun add @react-spectre/typography
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-16 |
| Published | 2018-01-13 |
| First published | 2018-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 65 |
| Author | Rubens Mariuzzo |
| Maintainers | rmariuzzo |

## Links

- npm: https://www.npmjs.com/package/@react-spectre/typography
- Repository: https://github.com/react-spectre/react-spectre/tree/master/packages/typography
- npm.io page: https://npm.io/package/@react-spectre/typography

## Dependencies (2)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0

## Recent versions

- 1.0.0-16 (latest) — 2018-01-13
- 1.0.0-15 — 2018-01-12
- 1.0.0-14 — 2018-01-12
- 1.0.0-13 — 2018-01-12
- 1.0.0-12 — 2018-01-09
- 1.0.0-11 — 2018-01-09
- 1.0.0-10 — 2018-01-09
- 1.0.0-9 — 2018-01-09
- 1.0.0-8 — 2018-01-08
- 1.0.0-7 — 2018-01-08
- 1.0.0-6 — 2018-01-05
- 1.0.0-5 — 2018-01-05
- 1.0.0-4 — 2018-01-04
- 1.0.0-3 — 2018-01-04
- 1.0.0-2 — 2018-01-04
- … 2 more at https://npm.io/package/@react-spectre/typography/versions

## README

<div align=center>
<img src="assets/react-spectre-logo.png" width="256" height="256">

# `@react-spectre/typography`
React components for Spectre.css's typography

<br><br><br>
</div>

## Installation

```shell
yarn add @react-spectre/typography
```

```shell
npm install @react-spectre/typography --save
```

<br><br><br>

## 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`.

```js
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:

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

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

```jsx
<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>
```

<div align=center>
<br><br><br>

Made with :heart: by [Rubens Mariuzzo](https://github.com/rmariuzzo).

[MIT License](LICENSE)

</div>

---
_Source: https://npm.io/package/@react-spectre/typography · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
