1.0.0 • Published 4 years ago

html-divider v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

html-divider

creates an hr-like divider with the text in the middle

NPM JavaScript Style Guide

Install

npm install --save html-divider

Usage

import React, { Component } from 'react'

import Divider from 'html-divider'

export default class App extends Component {
  render () {
    return (
      <div>
        <p>Section 1</p>
        <Divider/>
        <p>Section 2</p>
        <Divider color="#f00" value="or" />
        <p>Section 3</p>
      </div>
    )
  }
}

License

MIT © gianebao