html-divider

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i html-divider

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

16.3 kB

Total Files

8

Last publish

Collaborators

  • gianebao