1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 07:40:07 +02:00
copilot/ui/src/components/modal/readme.md

42 lines
717 B
Markdown
Raw Normal View History

2016-11-22 18:45:22 +02:00
# `<Modal> `
## demo
```embed
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
```js
const React = require('react');
const Modal = require('ui/button');
module.exports = () => {
return (
<Modal>
Hello World
</Modal>
);
}
```