Skip to content

t-var-s/svg-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-loader custom web component

An element that loads SVG code into the DOM so that it can be fully styled.

Get your vector icons in at any color.

svg-loader

Use a src attribute to load that SVG file asynchronously. From the demo:

<svg-loader src="img/settings.svg"></svg-loader>

You can just include something like:

<script src="https://cdn.jsdelivr.net/gh/t-var-s/svg-loader/svg-loader.js"></script>

in the <head> of your page to use the <svg-loader> tag.

The demo uses four Tabler Icons that are MIT licensed.

svg-loader is made available through an AGPL v3 license.

About

An element that loads SVG code into the DOM so that it can be fully styled.

Resources

License

Stars

Watchers

Forks

Contributors