Clay Icon Component
npm install clay-iconA Metal Clay component for rendering SVG icons and third-party icon fonts. For third-party fonts, make sure the font file and css are included on the page.
Rendering Clay SVG Icons:
``javascript`
new metal.ClayIcon({
spritemap: '/path/to/the/spritemap.svg',
symbol: 'plus'
});
Rendering Clay Font Awesome Icons
`javascript`
new metal.ClayIcon({
elementClasses: 'clay-fa icon-plus'
});
Rendering Glyphicons:
`javascript`
new metal.ClayIcon({
elementClasses: 'glyphicon glyphicon-plus'
});
Rendering Font Awesome 4 Icons:
`javascript`
new metal.ClayIcon({
elementClasses: 'fa fa-plus'
});
1. See metal-clay-components/README.md
2. Build the code:
``
npm run build
3. Watch task:
```
npm run watch
We'd love to get contributions from you! Please, check our Contributing Guidelines to see how you can help us improve.