1.0.6 • Published 5 years ago

react-flexpane v1.0.6

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

About

Basic layout manager based on flexbox

Install

npm install react-flexpane --save

Usage

Basic

import {FlexPane, FlexPaneContainer, FlexPaneBar, FlexPaneButtons, FlexPaneTitle} from 'react-flexpane'
import 'react-flexpane/dist/styles.css'

var App = () => <FlexPaneContainer>
    <FlexPane title="first pane">
        ...
    </FlexPane>
    <FlexPane title="second pane">
        ...
    </FlexPane>
    <FlexPane title="third pane">
        ...
    </FlexPane>
    </FlexPaneContainer>

Adding elements to pane bar

Each pane has <FlexPaneBar/> as a first child, if it is not specified, default one is added (which contains <FlexPaneButtons/> and <FlexPaneTitle/>).

<FlexPane> 
    content 
</FlexPane>

is the same as

<FlexPane>
    <FlexPaneBar>
        <FlexPaneButtons/>
        <FlexPaneTitle/>
    </FlexPaneBar> 
    content 
</FlexPane>

If you need custom elements in bar or you want to hide or rearrange buttons or title for some reason, use latter form.

Demo

https://codepen.io/mugiseyebrows/pen/JexqZB

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago