1.0.0 • Published 6 years ago

popo-react-panel v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

popo-react-panel

React panel for popojs

Installation

NPM

npm install popo-react-panel --save

Usage

ES6

The following examples can also be used with CommonJS by replacing ES6-specific syntax with CommonJS equivalents.

import React from 'react';
import Panel from 'popo-react-panel'

...
render() {
    return (
      <div id="app">
        <Panel target="1">
           <div slot="center">example</div>
        </Panel>
      </div>
    );
  }
...

Options

PropsTypeValuesDefault
targetNumberStringpanel id or panel map key1
titleStringpanel titlenull

Slot Options

PropsTypeValuesDefault
slotStringhead, center, left, right, footcenter

License

popo-vue-panel is open source and released under the MIT License.

Copyright (c) 2017 DaShun.

1.0.0

6 years ago