1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00
copilot/ui/src/components/toggle
2017-02-07 17:17:38 +00:00
..
index.js creating service view toggle component 2017-02-07 17:17:38 +00:00
readme.md updating toggle ui component 2017-01-09 18:22:43 +00:00
story.js wrapping toggle in base and removing margin on hidden label 2017-01-12 11:26:29 +00:00

<Toggle>

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 Toggle = require('./index.js');
const styles = require('./style.css');

nmodule.exports = ReactDOM.renderToString(
  <Base>  
    <Row>
      <Column>
        <Toggle 
          checked 
          labelLeft='Topology' 
          lavelRight='List'
        />
      </Column>
    </Row>
  </Base>
);