microicon
SVG icon microservice and node module
Includes over 1200 icons from Material Design, Reline, Geomicons, and Simple Icons
Usage
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 = const svg = `<svg viewBox='0 0 32 32' width='32' height='32' fill='currentcolor'> <path d='' /></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 = const Icon = module <div> <Icon name='heart' size=32 color='tomato' /> </div>
MIT License