This crate makes it easy to use SVG icons from the following collections (more may be added in the future):
toml
[dependencies]
yew_icons = {path = "..", features = ["FeatherArrowLeftCircle", "FeatherArrowRightCircle", "FeatherArrowUpCircle"]}
```rust use yew::prelude::*; use yew_icons::{Icon, IconId};
html!{
<>
Note: The icons will inherit their parent's CSS color
.
Each icon collection must be included with the corresponding feature flag, such as feather
or font_awesome_solid
.
To save binary size, individual icons can also be included by feature flag, such as FeatherZoomIn
or FontAwesomeSolidAtom
.
By default, no collections or icons are included. Be warned that including too many icons may result in a .wasm
binary
that some WebAssembly engines refuse to load (see https://github.com/rustwasm/wasm-pack/issues/981).
Code is licensed under either of
at your option.
Icons are licensed by their respective creators (see above). An license summary is emitted to the DOM for each icon:
html
<svg data-license="...original license...">
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.