bootstrap icon component

no real imlementation yet
This commit is contained in:
Sérgio Ramos 2016-10-31 11:11:39 +00:00
parent 6acf077cda
commit e33c8e8146
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,20 @@
const React = require('react');
// const icons = require('react-icons/md');
const Icon = ({
name,
className,
style
}) => {
// const Component = icons[name];
// <Component className={className} style={style} />
return (<div />);
};
Icon.propTypes = {
className: React.PropTypes.string,
name: React.PropTypes.string.isRequired,
style: React.PropTypes.object
};
module.exports = Icon;

View File

@ -0,0 +1,40 @@
# `<Checkbox>`
## 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(
<Base>
<Row>
<Column>
<Checkbox checked>
Checkbox checked
</Checkbox>
</Column>
</Row>
<Row>
<Column>
<Checkbox>
Checkbox unchecked
</Checkbox>
</Column>
</Row>
<Row>
<Column>
<Checkbox disabled>
Checkbox disabled
</Checkbox>
</Column>
</Row>
</Base>
);
```