Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/io12/yew-octicons

Easy support for Octicons in yew
https://github.com/io12/yew-octicons

Last synced: about 2 months ago
JSON representation

Easy support for Octicons in yew

Awesome Lists containing this project

README

        

[![](https://img.shields.io/crates/v/yew-octicons)](https://crates.io/crates/yew-octicons)
[![](https://docs.rs/yew-octicons/badge.svg)](https://docs.rs/yew-octicons)

# `yew-octicons`

An easy interface for using [Octicons](https://primer.style/octicons/) in [yew](https://yew.rs) projects.

## Example

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

let code = html! {

{ Icon::new(IconKind::Alert) }

};
```

For a more complex example, see [examples/icon-sizing](examples/icon-sizing).