Crates.io | nes-yew |
lib.rs | nes-yew |
version | 0.0.2 |
source | src |
created_at | 2023-08-24 14:19:17.985155 |
updated_at | 2023-08-27 10:09:54.876838 |
description | Yew component library for NES.css |
homepage | https://lightsing.github.io/nes-yew/ |
repository | https://github.com/lightsing/new-yew |
max_upload_size | |
id | 953842 |
size | 21,060 |
Yew component library for nes.css derived from nes-react
cargo add nes-yew
https://lightsing.github.io/nes-yew/
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>
}
}
git clone git@github.com:lightsing/nes-yew.git
npm install
in both the in /example.
trunk serve
then also in /example.
MIT © lightsing