0.0.3 • Published 2 years ago

zuosh-split-pane v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Split Pane Next

Developed based on React Split Pane(https://github.com/tomkp/react-split-pane).

Split-Pane React component, can be nested or split vertically or horizontally!

I'm working on an updated version of this library, and looking for help:

Demo

http://react-split-pane-v2.surge.sh/

Install

npm install react-split-pane-next

# or if you use yarn

yarn add react-split-pane-next

Usage

import SplitPane, { Pane } from 'react-split-pane-next';

<SplitPane split="vertical">
  <Pane initialSize="200px">You can use a Pane component</Pane>
  <div>or you can use a plain old div</div>
  <Pane initialSize="25%" minSize="10%" maxSize="500px">
    Using a Pane allows you to specify any constraints directly
  </Pane>
</SplitPane>;