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

#1014 in WebAssembly

Download history 12/week @ 2024-04-26 3/week @ 2024-05-03 2/week @ 2024-05-24 1/week @ 2024-05-31 1/week @ 2024-06-21 1/week @ 2024-06-28 17/week @ 2024-07-05 61/week @ 2024-07-26

78 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

~10–15MB
~262K SLoC