leptos-use/examples/use_scroll/README.md
Maccesch bd5d4ee3ff fixed example builds,
use_scroll demo finished,
docs cosmetics
2023-05-28 17:42:16 +01:00

582 B

A simple example for use_scroll.

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