Skip to main content

Module slider

Module slider 

Source
Expand description

A native range input with a filled track and visible value, from slider.css. The fill is a port of upstream’s slider.ts.

Re-exports§

pub use Slider_completions::Component::Slider;

Structs§

SliderProps
Properties for the Slider component.

Functions§

Slider
A native <input type="range">, which already has the whole keyboard contract and announces its own value. The visible <output> is not a live region, so a step is never announced twice.
slider_percent
The share of the range value covers, as upstream’s sliderPercent computes it: a degenerate range is drawn empty rather than dividing by zero.