nes-yew 0.0.2

Yew component library for NES.css
Documentation
  • Coverage
  • 1.88%
    3 out of 160 items documented0 out of 0 items with examples
  • Size
  • Source code size: 42.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 17.38 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 19s Average build duration of successful builds.
  • all releases: 1m 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lightsing

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