joyent-portal/ui/src/components/button
2017-04-04 11:23:36 +01:00
..
icon.js add icons to ui (#347) 2017-03-03 15:29:03 +00:00
index.js Font size to 15, button padding, add medium 2017-04-04 11:23:36 +01:00
readme.md no in embeds 2016-10-26 17:33:40 +01:00
story.js Adding unmanaged instances and "paper" composer 2017-03-09 18:40:29 +00: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>
    <Row>
      <Column>
        <Button>
          Create an Instance
        </Button>
      </Column>
      <Column>
        <Button secondary>
          Cancel
        </Button>
      </Column>
      <Column>
        <Button disabled>
          Inactive Button
        </Button>
      </Column>
    </Row>
  </Base>
);

usage

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

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