jxnblk / react-geomicons

React icon component for Geomicons Open

Home Page:https://jxnblk.github.io/react-geomicons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-geomicons

Build Status

React icon component for Geomicons Open

View Demo

Getting Started

npm install --save react-geomicons
var React = require('react');
var Icon = require('react-geomicons');

module.exports = React.createClass({
  render: function() {
    <MyComponent>
      <Icon name="bookmark" />
    </MyComponent>
  }
});

Props

React-geomicons passes all props to the SVG element, in addition to the following:

  • name - camel cased icon name
  • size - sets width and height attributes. default 1em (inherits size from parent element)
  • fill - default currentColor (inherits color from parent element)

See Geomicons Open for the list of available icons.

MIT License

About

React icon component for Geomicons Open

https://jxnblk.github.io/react-geomicons

License:MIT License


Languages

Language:JavaScript 100.0%