Function leptos_use::use_preferred_contrast

source ·
pub fn use_preferred_contrast() -> Signal<PreferredContrast>
Expand description

Reactive prefers-contrast media query.

§Usage

let preferred_contrast = use_preferred_contrast();

§Server-Side Rendering

On the server this returns a Signal that always contains the value PreferredContrast::NoPreference.

§See also

  • [use_media_query]
  • [use_preferred_dark]