npm.io
0.0.1 • Published 7 years ago

react-splitbox

Licence
MIT
Version
0.0.1
Deps
2
Size
17 kB
Vulns
0
Weekly
0
Stars
1

react-splitbox

react splitter component (https://dioklecijan.github.io/react-splitbox/)

NPM JavaScript Style Guide

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-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

Keywords