1.0.1 • Published 5 years ago

react-sailor-icons v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

React Sailor Icons

npm version npm downloads

What is react-sailor-icons?

react-sailor-icons is a collection of nice open source icons for React.js. Each icon is designed with an emphasis on simplicity, consistency and readability.

Explore icons

Based on Sailor Icons

Support for tree-shaking, to help you reduce bundle size.

Installation

npm install react-sailor-icons --save
// or
yarn add react-sailor-icons

Usage

import React from 'react';
import { Anchor } from 'react-sailor-icons';

const App = () => {
  return <Anchor />
};

export default App;

Icons can be configured with inline props:

<Anchor color="red" size={48} />

If you can't use ES6 imports, it's possible to include icons from the compiled folder ./dist.

var Anchor = require('react-sailor-icons/dist/icons/anchor').default;

var MyComponent = React.createClass({
  render: function () {
    return (
      <Anchor />
    );
  }
});

You can also include the whole icon pack:

import React from 'react';
import * as Icon from 'react-sailor-icons';

const App = () => {
  return <Icon.Anchor />
};

export default App;
1.0.1

5 years ago

1.0.0

5 years ago