Slider native
A range slider between min and max; bind value.
Preview
Loading the renderer…
createSurface + updateComponents, A2UI v0.9.
json
[
{
"version": "v0.9",
"createSurface": {
"surfaceId": "preview",
"catalogId": "https://ui.exponential.at/catalogs/core/v1"
}
},
{
"version": "v0.9",
"updateComponents": {
"surfaceId": "preview",
"components": [
{
"id": "root",
"component": "Stack",
"direction": "vertical",
"align": "stretch",
"children": [
"example"
]
},
{
"id": "example",
"component": "Slider",
"label": "Volume",
"min": 0,
"max": 100,
"value": 40
}
]
}
}
]This surface through a MemoryTransport. Install and transports: React guide.
This surface through a MemoryTransport. Install and transports: SwiftUI guide.
This surface through a MemoryTransport. Install and transports: Compose guide.
This surface through a MemoryTransport. Install and transports: gpui guide.
Platforms




View exponential-ui-slider, painted by each native renderer.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | – | The field label. |
min | number | 0 | The lowest value. |
maxrequired | number | – | The highest value. |
step | number | 1 | The increment. |
valuebind | number | – | The current value; bind it. |
Events and slots
| Name | Kind |
|---|---|
on.change | event: runs an action |
Accessibility
- Role
slider- Semantics
- slider
| Keys | Action |
|---|---|
| ArrowRightArrowUp | + step; ArrowLeft/ArrowDown: - step |
| PageUpPageDown | ± 10 steps |
| HomeEnd | min/max |
Theming
- Recipe parts
Slider/rootSlider/trackSlider/rangeSlider/thumbSlider/labelSlider/valueSlider/header- Keyed by
:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover