@ndla/typography
TypeScript icon, indicating that this package has built-in type declarations

0.4.19 • Public • Published

Typography

Typography components. We have two typography components: Heading and Text.

Installation

yarn add @ndla/typography
npm i --save @ndla/typography

Usage

Heading

import { Heading } from "@ndla/typography";

<Heading headingStyle="h1" element="h1" margin="normal">
  {title}
</Heading>;

Can be controlles using headingStyle, element, serif, margin props. The rendered element can be updated using the element prop.

Text

import { Text } from "@ndla/typography";

<Text textStyle="ingress" element="span" margin="normal" />;

Can be controlles using textStyle, element, margin props. The rendered element can be updated using the element prop.

Readme

Keywords

Package Sidebar

Install

npm i @ndla/typography

Weekly Downloads

151

Version

0.4.19

License

GPL-3.0

Unpacked Size

227 kB

Total Files

15

Last publish

Collaborators

  • kronen_ki
  • rauboti
  • mapoken
  • katrinewi
  • ndlauser
  • jonasc-knowit
  • gunnarvelle
  • jnatten