react-prose

1.0.0-0 • Public • Published

react-prose

React component for styling documents and blocks of HTML content

npm install react-prose
import React from 'react'
import Markdown from 'react-markdown'
import Prose from '../src/styled-components'
import readme from 'raw-loader!./README.md'
 
const App = () => (
  <Prose>
    <Markdown source={readme} />
  </Prose>
)

Features

  • Style blocks of HTML content
  • Scoped with css-in-js
  • Support for styled-components, glamorous, and cxs
  • Built in themes
  • Customizable via props
  • Full typographic control

Props

  • theme key for built-in theme

MIT License

Dependencies (14)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-prose

    Weekly Downloads

    2

    Version

    1.0.0-0

    License

    MIT

    Last publish

    Collaborators

    • jxnblk