No description
Find a file
amos bbd613206a
Make Slider component work on touch devices (#168)
blueprintjs, even on v4, apparently only works on desktop targets (it
uses mouse events), but I'm using yewprint for _something_ and I needed
it to work on mobile devices. It seems pointer events + pointer capture
is the way to go in 2023, so that's what this uses!

Tested on Chrome macOS, Firefox macOS, Safari macOS, and Chrome Android
and it works fine. You can drag starting from the handle or starting
from anywhere on the slider itself, you can still move the pointer
up/down outside the slider while holding it, focusing the handle + using
arrow keys still works as before.

I guess the only breaking change is that you can move the slider with a
secondary mouse button now, but since PointerEvent inherits from
MouseEvent it might be possible to re-add that restriction, if anyone
cares about it enough.
2023-04-04 20:34:33 +02:00
.cargo Replace wasm-run by xtask-wasm (#138) 2022-05-09 19:20:26 +02:00
.github Fix HtmlSelect not resetting properly when value changed (#145) 2022-08-22 16:15:22 +02:00
src Make Slider component work on touch devices (#168) 2023-04-04 20:34:33 +02:00
xtask Add components Portal and Overlay (#161) 2022-12-19 16:49:06 +01:00
yewprint-css Use Cell instead of RefCell (#166) 2023-02-07 08:05:16 +01:00
yewprint-doc Use Cell instead of RefCell (#166) 2023-02-07 08:05:16 +01:00
.gitattributes Insert demo in README 2020-09-19 14:09:54 +02:00
.gitignore Place temporary file at root with the others 2022-12-14 11:11:38 +01:00
.rustfmt.toml Router (#29) 2020-09-29 18:47:33 +02:00
Cargo.lock (cargo-release) version 0.4.3 2023-03-01 15:53:53 +01:00
Cargo.toml Make Slider component work on touch devices (#168) 2023-04-04 20:34:33 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-09-24 18:20:58 +02:00
LICENSE.Apache-2.0 Replace wasm-run by xtask-wasm (#138) 2022-05-09 19:20:26 +02:00
LICENSE.MIT Replace wasm-run by xtask-wasm (#138) 2022-05-09 19:20:26 +02:00
netlify.toml Fix routing issues (#144) 2022-07-14 23:41:38 +02:00
README.md Add components Portal and Overlay (#161) 2022-12-19 16:49:06 +01:00
rust-toolchain Modify some details on the build (#84) 2021-01-22 14:33:47 +01:00

Yewprint Rust Netlify Status Discord API Docs

It's Blueprint, but for Yew in Rust.

Warning: This is in early development and it is possible it won't be finished if there is no interest. Don't use this in production! Please help or leave a star to let me know you are interested in this project.

Installation

Usage

Check the template repository to see how things work. The Blueprint CSS needs to be downloaded from your build script.

To easily get started, you can use cargo-generate to get started very quickly:

cargo generate --git https://github.com/yewprint/yewprint-template.git

Development Environment

cargo xtask start

You can now go to http://localhost:8000

Blueprint CSS update

cargo xtask update-css

Roadmap