Have ideas to improve npm?Join in the discussion! »

svg-icons

1.0.13 • Public • Published

Svg Icons

Install

bower install svg-icons --save

Example usage

 
<main ng-app="exampleApp">
    <!-- use svg symbol/icon -->
    <icon icon="apps" class="my custom classes here"></icon>
    <icon icon="grid-on"></icon>
</main>
 
<script src="build/lib/angular/angular.min.js"></script>
<script src="dist/svg-icons.js"></script>
<script>
    //include module in app
    angular.module('exampleApp', [
        'svg-icons'
    ])
    //if you want to configure options:
    .run(function(svgIconProvider) {
        svgIconProvider.setOpts({
            baseClass: 'icon-ex'
        });
    });
</script> 

See icons-manifest.json to quickly see all available icons.

Only needed SVGs are included in the build. The google-svgs folder is all of Google's icons. The ones included in the Tute icon build process are in the svg folder.

Keywords

none

Install

npm i svg-icons

DownloadsWeekly Downloads

117

Version

1.0.13

License

MIT

Last publish

Collaborators

  • avatar