joyent-portal/ui/src/components/toggle/readme.md

30 lines
575 B
Markdown
Raw Normal View History

2016-10-26 13:55:27 +03:00
# `<Button>`
## 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 Toggle = require('./index.js');
const styles = require('./style.css');
nmodule.exports = ReactDOM.renderToString(
<Base>
<Container>
<Row>
<Column>
<Toggle />
</Column>
<Column>
<Toggle off />
</Column>
</Row>
</Container>
</Base>
);
```