Pit slider
A row of sticks over a native range: they grow on hover and dip into a pit under the thumb while it is dragged (or nudged with the keys), the value floating above.
Real scenarios
The component as it is used in a product — not a specimen grid.
Sound settings
Drag or nudge with the keys: the sticks under the thumb sink into the pit and the value floats above it. Both sliders write straight to the server.
On the server (wire:model.live):
effects — ·
music —
A slider that follows the page
:dark="false" drops the always-dark panel and lets the slider live on the surface — this one trims a reading lamp’s warmth, decimals and all.
Warmth on the server: —
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | null | The range’s accessible label — shown above the slider. |
| min / max / step / value | number | — | All native attributes land on the <input type="range"> itself; wire:model and name sit there too. |
| bars | int | 36 | How many sticks. |
| decimals / prefix / suffix | int / string | null / "" / "" | How the value reads: fraction digits and the text on either side (%, $…). |
| dark | bool | true | Keeps the panel dark in both themes; :dark="false" follows the page. |
Snippet
<x-nx::pit-slider label="صدا" min="0" max="100" value="42" suffix="٪" wire:model.live="state.volume" />