0.10.0 • Published 2 years ago

@polemic/react v0.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Polemic React

React components for rendering Polemic documents. Used by Parchment and Ink but can also be used to build your own solution.

Installation

With npm

npm install --save @polemic/react

With yarn

yarn add @polemic/react

Tailwind CSS

Polemic React uses the epic Tailwind CSS framework, so make sure that's installed when using this library. It doesn't currently come with precompiled CSS, so you need to include @polemic/react to your tailwind.config.js config:

module.exports = {
  content: [
    "./pages/**/*.{js,ts,jsx,tsx}",
    "./components/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@polemic/**/*.{js,ts,jsx,tsx}",
  ],
  // other config
}