Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dancespiele/yew_assets
Assets Icon components for yew
https://github.com/dancespiele/yew_assets
Last synced: 11 days ago
JSON representation
Assets Icon components for yew
- Host: GitHub
- URL: https://github.com/dancespiele/yew_assets
- Owner: dancespiele
- License: apache-2.0
- Created: 2020-07-14T23:05:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-17T00:05:40.000Z (over 3 years ago)
- Last Synced: 2024-10-10T05:35:23.224Z (28 days ago)
- Language: Rust
- Homepage: https://docs.rs/yew_assets
- Size: 256 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE.md
Awesome Lists containing this project
README
# Yew Assets
Assets Icon components for yew. The svgs are created by [feather community](https://feathericons.com) 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=["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
```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 {
App {}
}fn update(&mut self, _: Self::Message) -> ShouldRender {
false
}fn change(&mut self, _: Self::Properties) -> ShouldRender {
false
}fn view(&self) -> Html {
}
}
```## How run documentation page
1. Clone the repository:
`git clone [email protected]: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](http://127.0.0.1:8080)## Live documentation
[https://yewstyles.spielrs.tech/assets](https://yewstyles.spielrs.tech/assets)
## How to contributed
For a new svg icon please open a PR in [feather github repository](https://github.com/feathericons/feather) 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 Assets, help us supporting the project:
- [Gitcoin](https://gitcoin.co/grants/1472/yew-assets)
- [Github Sponsors](https://github.com/sponsors/dancespiele)
- [Paypal](https://paypal.me/dancespiele?locale.x=en_US)Yew Assets is [MIT](LICENSE-MIT.md) and [Apache-2.0](LICENSE-APACHE.md) licensed