Slider
Use slider to adjust a fraction from 0 to 1. Bind value to the model and handle on-change after dragging, keyboard adjustments, or an accessibility set-value action. A message with one numeric payload receives the applied fraction; a message without a payload reports only that a change occurred.
For controlled state, store the fraction in update and bind it back to value. A changed model value overrides retained state. Repeating the same source value preserves a user adjustment, and a live drag is not interrupted by reconciliation. For a display-only bar, use progress.

Markup
With a one-number float arm — { kind: "volume_changed"; fraction: number } in a TypeScript core, volume_changed: f32 in a Zig core — the arm receives the applied fraction directly (the examples/soundboard seek bar is the live pattern):
A void volume_changed arm keeps the older plain form; the Options.sync hook remains available to Zig apps that mirror runtime widget state wholesale.
Programmatic construction (Zig)
In a Zig view, the canvas.Ui builder constructs the same tree programmatically; on_value = Ui.valueMsg(.tag) is the value channel:
Attributes
| Attribute | Description |
|---|---|
value | Value for slider/progress/text entry; a literal or one {binding}. |
disabled | Disables the control; true/false or a {binding}. |
on-change | Dispatch a Msg on change: tag or tag:{payload}. Hit-target elements only. On a treeitem, Up/Down/Left/Right/Home/End focus movement prefers on-change over on-press, separating keyboard selection from pointer activation. |
