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: toml yew_assets = {version="0.1", features=["ux_assets", "editing_assets", "social_assets"]}

Features

browserassets, businessassets, communicationassets, controllerassets, devassets, deviceassets, editingassets, envassets, fileassets, infoassets, multimediaassets, navassets, objectassets, socialassets, ux_assets

Example of one of the Assets Icon component

```rust 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

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.