lhl 6ff0e96ad3 8-4-1 1 gadu atpakaļ
..
build 6ff0e96ad3 8-4-1 1 gadu atpakaļ
README.md 6ff0e96ad3 8-4-1 1 gadu atpakaļ
demo.html 6ff0e96ad3 8-4-1 1 gadu atpakaļ
main.js 6ff0e96ad3 8-4-1 1 gadu atpakaļ
webpack.config.js 6ff0e96ad3 8-4-1 1 gadu atpakaļ

README.md

Default browser runtime example

In browser sprite is rendered and injected in page automatically, you just refer to images via <svg><use xlink:href="#id"></use></svg>.

Demo

Input

import twitterIcon from '../assets/twitter.svg';

Reference in HTML

<svg>
  <use xlink:href="#twitter"></use>
</svg>

Input

Output