Skip to main content

use_preferred_contrast

Function 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

Make sure you follow the instructions in Server-Side Rendering.

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

§See also