Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightsing/nes-yew
https://github.com/lightsing/nes-yew
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lightsing/nes-yew
- Owner: lightsing
- Created: 2023-08-24T14:24:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-27T10:09:26.000Z (over 1 year ago)
- Last Synced: 2023-08-27T11:27:44.116Z (over 1 year ago)
- Language: Rust
- Size: 262 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nes-yew
[![Crates.io](https://img.shields.io/crates/v/nes-yew)](https://crates.io/crates/nes-yew)
[![docs.rs](https://docs.rs/nes-yew/badge.svg)](https://docs.rs/nes-yew)> Yew component library for nes.css derived from [nes-react](https://github.com/bschulte/nes-react)
## Install
```bash
cargo add nes-yew
```## Demo
## 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```html
```
in your `index.html`.
```rust
use nes_yew::*;#[function_component]
fn App() -> Html {
html! {
{"We're using containers from nes.css!"}
}
}
```## Development
`git clone [email protected]:lightsing/nes-yew.git`
`npm install` in both the in /example.
`trunk serve` then also in /example.
## License
MIT © [lightsing](https://github.com/lightsing)