pjdjs

Portable JSON Document React library

Usage no npm install needed!

<script type="module">
  import pjdjs from 'https://cdn.skypack.dev/pjdjs';
</script>

README

PJD.js

Component Library to render pdf documents through Portable JSON Documents

Install

  • Install through yarn:
    yarn add pjdjs

  • Install through npm:
    npm i pjdjs

Testing

  • Storybook: To run storybook, simple run the below command in the root directory
    yarn storybook

  • Jest: To run jest, run either command below:
    yarn jest
    yarn jest:watch

To add a story of your component to storybook, add in a {component}.stories.tsx next your index.tsx with some generic props

Component List

  • PJD