nes-yew

Crates.iones-yew
lib.rsnes-yew
version0.0.2
sourcesrc
created_at2023-08-24 14:19:17.985155
updated_at2023-08-27 10:09:54.876838
descriptionYew component library for NES.css
homepagehttps://lightsing.github.io/nes-yew/
repositoryhttps://github.com/lightsing/new-yew
max_upload_size
id953842
size21,060
Akase Haruka (lightsing)

documentation

https://docs.rs/nes-yew/

README

nes-yew

Crates.io docs.rs

Yew component library for nes.css derived from nes-react

Install

cargo add nes-yew

Demo

https://lightsing.github.io/nes-yew/

Usage

If you want to use the default font family for nes.css (Press Start 2P), make sure to include that in your app in whatever way you choose. To use Google Font APIs, just stick a

<link
  href="https://fonts.googleapis.com/css?family=Press+Start+2P"
  rel="stylesheet"
/>

in your index.html.

use nes_yew::*;

#[function_component]
fn App() -> Html {
    html! {
        <Container>{"We're using containers from nes.css!"}</Container>
    }
}

Development

git clone git@github.com:lightsing/nes-yew.git

npm install in both the in /example.

trunk serve then also in /example.

License

MIT © lightsing

Commit count: 0

cargo fmt