Skip to content

LLazyEmail/react-email-typography-components

Repository files navigation

yarn add react-email-components-typography

Greenkeeper badge Example Rollup React Component NPM Package codecov npm npm

Components

  • Divider
  • HeadingOne
  • HeadingThree
  • Italic
  • Link
  • List
  • Paragraph
  • Separator
  • Strong
  • Subtitle

5

Example React component "library" using rollup that is published to npm.

rollup and webpack

There are a lot of articles that compare rollup and webpack (like this or this or this or this).

The general point is

webpack is generally a better fit for applications, and rollup is generally a better fit for libraries 1

So what is this project?

I've never used rollup before - hell, I've barely used webpack before.

This was mostly to see how easy / difficult it was to create a React component package using rollup (aka "proof-of-concept").

My requirements for this package were

  1. Use babel
  2. Use semantic-release
  3. Use sass
  4. Support umd and es modules
  5. Use storybook
  6. Make the exported components really simple
├── xxx
│   ├── xxx
│   │   ├── **/*.xxx
│   ├── xxx
│   ├── images
│   ├── xxx
│   ├── js
│   │   ├── **/*.js
│   └── xxx
├── dist (or build)
├── 
├── 
├── 
├── 
├── README.md
├── package.json
├── 
└── .gitignore

Components

  • Divider
  • HeadingOne
  • HeadingThree
  • Italic
  • Link
  • List
  • Paragraph
  • Separator
  • Strong
  • Subtitle

steal beauty from https://getbootstrap.com/docs/4.0/content/typography/ or https://github.com/mdbootstrap/mdb-react-ui-kit/blob/master/app/src/styles/Typography/Typography.tsx

Arthur Tkachenko articles

React Design System

Releases

No releases published

Packages

No packages published