JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q72139F
  • License MIT

Real System Typography components

Package Exports

  • @real-system/typography
  • @real-system/typography/lib/index.esm.js
  • @real-system/typography/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@real-system/typography) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@real-system/typography

Real System's Typography components.

npm version minified size

Usage

# install peer dependencies

# npm
$ npm install @real-system/styling-library @real-system/box-primitive @real-system/utils-library react react-dom
# yarn
$ yarn add @real-system/styling-library @real-system/box-primitive @real-system/utils-library react react-dom

# install typography

# npm
$ npm install @real-system/typography
# yarn
$ yarn add @real-system/typography

Code Example

import { ThemeProvider } from '@real-system/theme-library';
import { Typography } from '@real-system/typography';

/** can also import Heading separately like this
 * import { Heading } from '@real-system/typography';
 */
const MyComponent = () => {
  return (
    <ThemeProvider>
      <Typography.Heading as="h1" variant="heading1">Heading 1</Typography>
      <Typography>Body text...</Typography>
    </ThemeProvider>
  )
}