react-geomicons

3.0.0-0 • Public • Published

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

/react-geomicons/

    Package Sidebar

    Install

    npm i react-geomicons

    Weekly Downloads

    75

    Version

    3.0.0-0

    License

    MIT

    Unpacked Size

    6.86 kB

    Total Files

    6

    Last publish

    Collaborators

    • jxnblk