pub fn Slider(_: SliderProps) -> ElementExpand description
A value picked from a range.
The position a drag is passing through stays in the Renderer, so following a finger
costs no boundary call, and value seeds that position and moves it when the change
came from elsewhere. steps is the number of stops between the two ends; zero leaves
the slider continuous.
ยงProps
For details, see the props struct definition.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>color:Option<Paint>The colour of the part of the track that has been filled in, and of the thumb.
The design system decides where this is unset, which is what an adaptive application wants. A unified one names it, because its reference may have no accent at all and a system asked the question answers with its own.
shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolvalue:f32min:f32max:f32steps:u32enabled:boolon_change:EventHandler<f32>