1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-13 14:50:07 +02:00
copilot/ui/src/components/radio
2016-10-27 10:38:33 +01:00
..
index.js Radio Input - implimenting UI component and styling 2016-10-26 18:03:47 +01:00
readme.md Radio Input - implimenting UI component and styling 2016-10-26 18:03:47 +01:00
style.css use more variables in Radio css 2016-10-27 10:38:33 +01:00

<Radio>

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

nmodule.exports = ReactDOM.renderToString(
  <Base>
    <Container>
      <Row>
        <Column>
          <Radio name='gender' value='female' label='Female' checked={false}/>
          <Radio name='gender' value='male' label='Male' checked={true}/>
        </Column>
      </Row>
    </Container>
  </Base>
);

usage

const React = require('react');
const Radio = require('ui/radio');

module.exports = () => {
  return (
    <Radio name='gender' value='female' label='Female' />
    <Radio name='gender' value='male' label='Male' checked/>
  );
}