1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00
copilot/ui/src/components/icon
Sérgio Ramos 5a6a7ae53b convert Icon
2016-12-12 10:28:48 +00:00
..
index.js convert Icon 2016-12-12 10:28:48 +00:00
readme.md correcting title 2016-11-28 17:58:30 +00:00
style.css adding in icon ui component and react-icon node module 2016-11-23 15:13:21 +00:00

<Icon>

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

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

usage

const React = require('react');
const Icon = require('ui/icon');

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