1.1.3 • Published 1 year ago

@vygruppen/spor-typography-react v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.5

2 years ago

0.4.6

2 years ago

0.4.4

2 years ago

0.4.1

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago