html-divider

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

Usage no npm install needed!

<script type="module">
  import htmlDivider from 'https://cdn.skypack.dev/html-divider';
</script>

README

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