react-splitbox

0.0.1 • Public • Published

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

/react-splitbox/

    Package Sidebar

    Install

    npm i react-splitbox

    Weekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    17.1 kB

    Total Files

    21

    Last publish

    Collaborators

    • dioklecijan