react-splitbox
v0.0.1
Published
react splitter component
Downloads
6
Maintainers
Readme
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-alpha1
or higher.
Install
npm install --save react-splitbox
Usage
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