Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/io12/yew-octicons
- Owner: io12
- License: mit
- Created: 2020-07-13T23:52:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-30T10:48:13.000Z (about 1 year ago)
- Last Synced: 2024-08-04T01:05:56.029Z (5 months ago)
- Language: Rust
- Size: 3.78 MB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-yew - yew-octicons - An easy interface for using Octicons in Yew projects. (Projects)
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).