Crates.io | yew_assets |
lib.rs | yew_assets |
version | 0.1.2 |
source | src |
created_at | 2020-07-14 23:46:38.712795 |
updated_at | 2021-06-15 00:16:18.659096 |
description | Assets Icon components for yew |
homepage | |
repository | https://github.com/spielrs/yew_assets |
max_upload_size | |
id | 265256 |
size | 279,239 |
Assets Icon components for yew. The svgs are created by feather community and all of them have the most permissive license (MIT)
Include in cargo.toml with the features which will be used in the project:
yew_assets = {version="0.1", features=["full"]}
browser_assets, business_assets, communication_assets, controller_assets, dev_assets, device_assets, editing_assets, env_assets, file_assets, info_assets, multimedia_assets, nav_assets, object_assets, social_assets, ux_assets
use yew::prelude::*;
use yew_assets::{UxAssets, UxIcon};
pub struct App;
impl Component for App {
type Message = ();
type Properties = ();
fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
App {}
}
fn update(&mut self, _: Self::Message) -> ShouldRender {
false
}
fn change(&mut self, _: Self::Properties) -> ShouldRender {
false
}
fn view(&self) -> Html {
<UxAssets
icon = UxIcon::ShieldOff
fill = "#fff"
size = ("30".to_string(),"30".to_string())
/>
}
}
git clone git@github.com:spielrs/yew_assets.git
RUST_LOG=yew_assets cargo=trace cargo run
https://yewstyles.spielrs.tech/assets
For a new svg icon please open a PR in feather github repository and after it is approved for them, create a new issue in this repository then soon the component will be generated. For fixes please open directly a pull request.
If you like Yew Styles, help us supporting the project:
Yew Assets is MIT and Apache-2.0 licensed