# API map of the "Value drag" family: old path to new path and setter renames. # Filled in by the family track; the codemods and the app scan read it. family = "Value drag" new_module = "craft_ui::value_drag" # One entry per public type: `old` is the path an app calls today, `new` the path after migration. # `status` is "pending", "same" (path unchanged), "moved", "replaced" (use `note`) or "removed". [[type]] name = "Slider" old = "craft_ui::controls::slider::Slider" new = "craft_ui::value_drag::Slider" status = "moved" note = "A `Component`: `Slider::new(Bind::bound(&mut value), 0.0..=100.0).label(\"Opacity\").show(ui)`; the id salt, the label (`Common.label`), `size`, `enabled` and the reset value (the binding's) are the common props. The output is `EditResponse`. `Slider::style(tokens, size)` is gone; the style is `SliderStyle`. The wheel steps a slider only while it is focused or armed (the horizontal share always), so `wheel`, `wheel_unfocused` and `wheel_step` go; the step is `step` for arrows and wheel alike." [[type]] name = "RangeSlider" old = "craft_ui::controls::range_slider::RangeSlider" new = "craft_ui::value_drag::RangeSlider" status = "moved" note = "A `Component` over `Bind<(f64, f64)>`, lower end first; the label names the pair and the thumbs are named `