1.1.3 • Published 2 years ago

@vygruppen/spor-typography-react v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Typography (React)

The typography package consists of all the components you need to add text to your app.

Installation

$ npm install @vygruppen/spor-typography-react

Usage

import { Text, Paragraph, Heading } from "@vygruppen/spor-typography-react";

Text aka Paragraph

A simple paragraph of text.

This component has an alias - Text and Paragraph is the exact same component. Text reads nicer, but Text is also a window global, which will make it troublesome to import automatically.

You can specify all the styles you want as props, including fontSize and color.

<Text>Choo choo, goes the train</Text>
<Paragraph fontSize="sm">In Norwegian, trains go "tøff tøff tøff"</Paragraph>

Heading

A heading, that defaults to a H2 with fontSize="xl".

You can override the heading level with the as prop:

<Heading as="h1" fontSize="2xl">
  Huge news!
</Heading>

Development

Please refer to the root readme for development notes.

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.4.9

3 years ago

0.4.8

3 years ago

0.4.7

3 years ago

0.4.5

3 years ago

0.4.6

3 years ago

0.4.4

3 years ago

0.4.1

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago