1.0.0 • Published 4 years ago
html-divider v1.0.0
html-divider
creates an hr-like divider with the text in the middle
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
1.0.0
4 years ago