Skip to content

martinklepsch/microicon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SVG icon microservice

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%