mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
6d57bdf7f5
Implemented the `use_prefers_reduced_motion` function to create a reactive interface for detecting the user's reduced motion preference via the `prefers-reduced-motion` media query.
16 lines
358 B
TOML
16 lines
358 B
TOML
[package]
|
|
name = "use_prefers_reduced_motion"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
leptos = { version = "0.6", features = ["nightly", "csr"] }
|
|
console_error_panic_hook = "0.1"
|
|
console_log = "1"
|
|
log = "0.4"
|
|
leptos-use = { path = "../..", features = ["docs"] }
|
|
web-sys = "0.3"
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-test = "0.3.0"
|