Skip to main content

Module slider

Module slider 

Source
Expand description

Slider — a draggable value selector bound to a Signal<f32>.

The widget owns all input handling: pointer drag (click-to-jump and thumb-drag), keyboard arrows (ArrowRight/ArrowLeft/Up/Down, Home, End), and Increment/Decrement accessibility actions. All visual chrome is delegated to a [SliderStyle] implementation; the IntUI default ships out of the box and is also the theme-wide slot override target (theme.style_slots.slider).

§Accessibility

Exposes Role::Slider with numeric value, min, max, step, and orientation. Screen readers announce the current value on every change. The focus ring follows the :focus-visible heuristic — visible after keyboard interaction, invisible after a pointer tap.

let volume = Signal::new(0.5_f32);
let _w = Slider::new(volume, 0.0, 1.0).step(0.05);

Structs§

Slider
A draggable value selector bound to a Signal<f32> in a continuous or discrete range. Visual chrome is fully delegated to a [SliderStyle] implementation.

Enums§

SliderVariantExport