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

#1235 in WebAssembly

Download history 15/week @ 2024-11-27 121/week @ 2024-12-04 112/week @ 2024-12-11 24/week @ 2024-12-18 5/week @ 2024-12-25 39/week @ 2025-01-01 23/week @ 2025-01-08 11/week @ 2025-01-15 11/week @ 2025-02-05 63/week @ 2025-02-12 5/week @ 2025-02-26 6/week @ 2025-03-05

74 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
~276K SLoC