leptos-use/examples/use_display_media
2023-12-05 23:12:31 +00:00
..
src made display media api closer to solidjs-use and rest of library 2023-12-05 23:12:31 +00:00
style made display media api closer to solidjs-use and rest of library 2023-12-05 23:12:31 +00:00
Cargo.toml add use_display_media 2023-11-24 15:06:35 -05:00
index.html fix the example via template 2023-11-24 15:23:30 -05:00
input.css fix the example via template 2023-11-24 15:23:30 -05:00
README.md fix the example via template 2023-11-24 15:23:30 -05:00
rust-toolchain.toml add use_display_media 2023-11-24 15:06:35 -05:00
tailwind.config.js fix the example via template 2023-11-24 15:23:30 -05:00
Trunk.toml add use_display_media 2023-11-24 15:06:35 -05:00

A simple example for use_display_media.

If you don't have it installed already, install Trunk and Tailwind as well as the nightly toolchain for Rust and the wasm32-unknown-unknown target:

cargo install trunk
npm install -D tailwindcss @tailwindcss/forms
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown

Then, open two terminals. In the first one, run:

npx tailwindcss -i ./input.css -o ./style/output.css --watch

In the second one, run:

trunk serve --open