react-geomicons

React icon component for Geomicons Open.

Getting Started

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

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

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.

GitHub

React icon component for Geomicons OpenRead More

Latest commit to the master branch on 8-7-2019
Download as zip