1.1.3 • Published 2 years ago

react-dripicons v1.1.3

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

React Dripicons

react-dripicons is a free SVG icon library, built for React. It is a port of the Dripicons V2 icon pack made by Amit Jakhu and licensed under the Creative Commons Attribution 4.0 International License.

Inspired by the popular react-feather library.

Installation

npm

npm install react-dripicons

yarn

yarn add react-dripicons

Usage

import { Document } from 'react-dripicons';

const MyComponent = () => (
  <Document color="#0224AD" size={32} />
);

Any SVG attribute can be passed in as well:

import { Document } from 'react-dripicons';

const MyComponent = () => (
  <Document size={32} strokeWidth={3} />
);

You can include the entire icon pack (but you probably shouldn't):

import * as Icons from 'react-dripicons';

const MyComponent = () => (
  <Icons.Document />
);

If your project does not support ES6 imports, use the dist folder:

var Document = require('react-dripicons/dist/icons/document').default;