joyent-portal/ui/src/components/modal
2016-11-22 16:45:22 +00:00
..
index.js adding in modal 2016-11-22 16:45:22 +00:00
readme.md adding in modal 2016-11-22 16:45:22 +00:00
style.css adding in modal 2016-11-22 16:45:22 +00:00

<Modal>

demo

const React = require('react');
const ReactDOM = require('react-dom/server');
const Base = require('../base');
const Container = require('../container');
const Row = require('../row');
const Column = require('../column');
const Modal = require('./index.js');
const styles = require('./style.css');

nmodule.exports = ReactDOM.renderToString(
  <Base>
    <Row>
      <Column>  
        <Modal active name="modal1" >
          Create an Instance
        </Modal>
      </Column>
    </Row>
  </Base>
);

usage

const React = require('react');
const Modal = require('ui/button');

module.exports = () => {
  return (
    <Modal>
      Hello World
    </Modal>
  );
}