1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-13 14:50:07 +02:00
copilot/ui/src/components/radio-group
2016-12-14 12:30:25 +00:00
..
index.js updating radio group component 2016-12-13 11:01:18 +00:00
item.js refactoing radio input 2016-12-14 12:30:25 +00:00
readme.md implement <RadioGroup> 2016-10-28 01:22:47 +01:00
style.css Css linting (#66) 2016-11-02 17:34:08 +00:00

<RadioGroup>

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

nmodule.exports = ReactDOM.renderToString(
  <Base>
    <Row>
      <Column>
        <RadioGroup name='mode'>
          <Radio label='Default settings' value='default'>
            <p>You get all the good bits and none of the rubbish</p>
          </Radio>
          <Radio label='Fancy settings' value='fancy'>
            <p>You get all the good bits and extra brownies</p>
          </Radio>
          <Radio disabled label='No settings' value='none'>
            <p>You get none of the good bits</p>
          </Radio>
        </RadioGroup>
      </Column>
    </Row>
  </Base>
);