5 releases (3 breaking)

0.4.0 Feb 20, 2023
0.3.1 Dec 14, 2021
0.2.0 May 17, 2021
0.1.1 Jul 14, 2020
0.1.0 Jul 14, 2020

#1157 in WebAssembly

23 downloads per month

MIT license

1MB
2K SLoC

JavaScript 1.5K SLoC // 0.0% comments Ruby 382 SLoC // 0.0% comments Rust 147 SLoC // 0.1% comments Shell 54 SLoC // 0.1% comments TSX 32 SLoC TypeScript 15 SLoC // 0.2% comments

yew-octicons

An easy interface for using Octicons in yew projects.

Example

use yew::html;
use yew_octicons::Icon;
use yew_octicons::IconKind;

let code = html! {
    <span>
        { Icon::new(IconKind::Alert) }
    </span>
};

For a more complex example, see examples/icon-sizing.

Dependencies

~11–20MB
~275K SLoC