1.0.0-0 • Published 7 years ago

react-prose v1.0.0-0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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