1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 13:50:06 +02:00
copilot/ui/src/components/button-icon
Sérgio Ramos 557cd5a291 wip rm css
2016-12-12 10:28:47 +00:00
..
index.js wip rm css 2016-12-12 10:28:47 +00:00
readme.md creating button-icon component 2016-11-28 17:58:30 +00:00

<ButtonIcon>

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

nmodule.exports = ReactDOM.renderToString(
  <Base>
    <Row>
      <Column>
        <ButtonIcon iconSet='fa' name='beer' />
      </Column>
    </Row>
  </Base>
);

usage

const React = require('react');
const ButtonIcon = require('ui/button-icon');

module.exports = () => {
  return (
    <ButtonIcon iconSet='fa' name='beer' />
  );
}