From e33c8e81468e8a3771b50a2c12377dcbbe907f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Mon, 31 Oct 2016 11:11:39 +0000 Subject: [PATCH] bootstrap icon component no real imlementation yet --- ui/src/components/icon/index.js | 20 ++++++++++++++++ ui/src/components/icon/readme.md | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 ui/src/components/icon/index.js create mode 100644 ui/src/components/icon/readme.md diff --git a/ui/src/components/icon/index.js b/ui/src/components/icon/index.js new file mode 100644 index 00000000..973d9d71 --- /dev/null +++ b/ui/src/components/icon/index.js @@ -0,0 +1,20 @@ +const React = require('react'); +// const icons = require('react-icons/md'); + +const Icon = ({ + name, + className, + style +}) => { + // const Component = icons[name]; + // + return (
); +}; + +Icon.propTypes = { + className: React.PropTypes.string, + name: React.PropTypes.string.isRequired, + style: React.PropTypes.object +}; + +module.exports = Icon; diff --git a/ui/src/components/icon/readme.md b/ui/src/components/icon/readme.md new file mode 100644 index 00000000..71d653dd --- /dev/null +++ b/ui/src/components/icon/readme.md @@ -0,0 +1,40 @@ +# `` + +## demo + +```embed +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 Checkbox = require('./index.js'); +const styles = require('./style.css'); + +nmodule.exports = ReactDOM.renderToString( + + + + + Checkbox checked + + + + + + + Checkbox unchecked + + + + + + + Checkbox disabled + + + + +); +```