0.0.1 • Published 7 years ago
react-splitbox v0.0.1
react-splitbox
react splitter component (https://dioklecijan.github.io/react-splitbox/)
Requirements
This lib uses react hooks which means you need react and react-dom
version 16.8.0-alpha1or higher.
Install
npm install --save react-splitboxUsage
import React, { Component } from 'react'
import Splitter from 'react-splitbox'
class Example extends Component {
render () {
return (
<Splitter vertical size="33% onResize={this.onResize}>
<div>top pane</div>
<div>bottom pane</div>
</Splitter>
)
}
}Example app is in example directory.
License
MIT © dioklecijan
0.0.1
7 years ago