Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doberan/yew-bulma-components
https://github.com/doberan/yew-bulma-components
bulma-css yew
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/doberan/yew-bulma-components
- Owner: doberan
- Created: 2021-06-02T04:09:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T01:04:43.000Z (over 3 years ago)
- Last Synced: 2024-10-02T05:42:04.136Z (about 2 months ago)
- Topics: bulma-css, yew
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yew-bulma-components
## Introduction
clone project and Create a new project.
```bash
git clone https://github.com/doberan/yew-bulma-components.git
cargo new --bin sample-yew-homepage
cd sample-yew-homepage
touch index.html
```edit Cargo.toml.
```toml
[package]
authors = []
edition = "2018"
name = "sample_yew_homepage"
version = "0.1.0"
[dependencies]
wasm-bindgen = "0.2.74"
yew = "0.18.0"
yew_bulma_components = "0.1.0"
```edit index.html.
```html
Sample Yew Project.
```
edit main.rs
```rust
extern crate yew_bulma_components;
use yew::prelude::*;
use yew_bulma_components::components::atoms::h1;pub struct Home;
impl Component for Home {
type Message = ();
type Properties = ();fn create(_props: Self::Properties, _link: ComponentLink) -> Self {
Self
}fn update(&mut self, _msg: Self::Message) -> ShouldRender {
unimplemented!()
}fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}fn view(&self) -> Html {
html! {
}
}
}fn main() {
yew::start_app::();
}```
execute serve.
```bash
trunk serve
```