4 releases

0.1.2 Jun 15, 2021
0.1.1 Oct 26, 2020
0.1.0 Jul 17, 2020
0.0.1 Jul 14, 2020

#328 in HTTP client

Download history 24/week @ 2023-12-13 32/week @ 2023-12-20 9/week @ 2023-12-27 10/week @ 2024-01-03 33/week @ 2024-01-10 28/week @ 2024-01-17 13/week @ 2024-01-24 9/week @ 2024-01-31 21/week @ 2024-02-07 39/week @ 2024-02-14 27/week @ 2024-02-21 56/week @ 2024-02-28 41/week @ 2024-03-06 44/week @ 2024-03-13 50/week @ 2024-03-20 40/week @ 2024-03-27

183 downloads per month
Used in 2 crates (via yew_styles)

MIT/Apache

270KB
6K SLoC

Yew Assets

Assets Icon components for yew. The svgs are created by feather community and all of them have the most permissive license (MIT)

How to use:

Include in cargo.toml with the features which will be used in the project:

yew_assets = {version="0.1", features=["full"]}

Features

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

Example of one of the Assets Icon component

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())
        />
    }
}

How run documentation page

  1. Clone the repository: git clone git@github.com:spielrs/yew_assets.git
  2. Run the project: RUST_LOG=yew_assets cargo=trace cargo run
  3. Open the browser in http://127.0.0.1:8080

Live documentation

https://yewstyles.spielrs.tech/assets

How to contributed

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.

Do you like Yew Assets?

If you like Yew Styles, help us supporting the project:

Yew Assets is MIT and Apache-2.0 licensed

Dependencies

~2.8–4MB
~78K SLoC