microicon

1.0.0-b.2 • Public • Published

microicon

SVG icon microservice and node module

Includes over 1200 icons from Material Design, Reline, Geomicons, and Simple Icons

Usage

https://icon.now.sh/chevron

Size

https://icon.now.sh/chevron/32

Color

https://icon.now.sh/chevron/ff0000

Direction

(Only for directional icons)

https://icon.now.sh/chevron/down

Stroke width

(Only for Reline icons)

https://icon.now.sh/chevron/?strokeWidth=1

Node.js Usage

npm install microicon
const paths = require('microicon')
 
const svg = `
<svg viewBox='0 0 32 32'
  width='32'
  height='32'
  fill='currentcolor'>
  <path d='${paths.heart}' />
</svg>
`

Note: the paths object is quite large and it is not recommended for use in client side scripts. Consider using a build step to extract the subset of icons that you need.

React Component

const React = require('react')
const { Icon } = require('microicon')
 
module.exports = () => (
  <div>
    <Icon name='heart' size={32} color='tomato' />
  </div>
)

MIT License

Package Sidebar

Install

npm i microicon

Weekly Downloads

0

Version

1.0.0-b.2

License

MIT

Last publish

Collaborators

  • jxnblk