#web #asmjs #svg #yew

yew_svg

SVG icon helper for yew framework

1 unstable release

0.1.0 Nov 23, 2018

#13 in #asmjs

Download history 4/week @ 2018-11-23

1 downloads per month

MIT/Apache

6KB
131 lines

SVG Icon Helper for yew framework

need yew version: 0.4

USAGE

1) with remote svg-defs:

html!{
    <SVG: href="/svg-defs.svg#shape",/>
}

2) with local *.svg file or string:

html!{
    <SVG: content=include_str!("../svgs/satellite.svg"),/>
}

Dependencies

~3.5MB
~70K SLoC