1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 07:40:07 +02:00
copilot/ui/src/components/button
2016-10-26 12:42:59 +01:00
..
index.js s/secundary/secondary 2016-10-26 12:42:59 +01:00
readme.md s/secundary/secondary 2016-10-26 12:42:59 +01:00
style.css s/secundary/secondary 2016-10-26 12:42:59 +01:00

<Button>

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

nmodule.exports = ReactDOM.renderToString(
  <Base>
    <Container>
      <Row>
        <Column>
          <Button>
            Create an Instance
          </Button>
        </Column>
        <Column>
          <Button secondary>
            Cancel
          </Button>
        </Column>
        <Column>
          <Button disabled>
            Inactive Button
          </Button>
        </Column>
      </Row>
    </Container>
  </Base>
);

usage

const React = require('react');
const Button = require('ui/button');

module.exports = () => {
  return (
    <Button>
      Hello World
    </Button>
  );
}