shunok / popo-react-panel

React panel for popojs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Props Type Values Default
target Number String panel id or panel map key
title String panel title null

Slot Options

Props Type Values Default
slot String head, center, left, right, foot center

License

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

Copyright (c) 2017 DaShun.

About

React panel for popojs

License:MIT License


Languages

Language:JavaScript 97.9%Language:CSS 2.1%