lhl 6ff0e96ad3 8-4-1 | 1 year ago | |
---|---|---|
.. | ||
build | 1 year ago | |
README.md | 1 year ago | |
demo.html | 1 year ago | |
main.js | 1 year ago | |
webpack.config.js | 1 year ago |
In browser sprite is rendered and injected in page automatically, you just refer to images via <svg><use xlink:href="#id"></use></svg>
.
Input
import twitterIcon from '../assets/twitter.svg';
Reference in HTML
<svg>
<use xlink:href="#twitter"></use>
</svg>