react-sailor-icons
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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;

Package Sidebar

Install

npm i react-sailor-icons

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

180 kB

Total Files

48

Last publish

Collaborators

  • katalonne