Glass JS behaviour

Glass slider

A native range whose thumb becomes a magnifier while dragged; the ticks fill under it and the figure beside it rolls live.

Real scenarios

The component as it is used in a product — not a specimen grid.

Reading size

17px

The quick brown fox jumps over the lazy dog — set this line free at whatever size reads best.

Speaker volume

40%
Arrow keys nudge by the step; Home and End jump to the rails.

Important props

Important props
Prop Type Default What it does
value / wire:model number وسط بازه The current value; binds to the server through wire:model.
min / max / step number 0 · 100 · 1 The range and step — the native range input as is.
ticks / show-value / suffix int · bool · string 11 · true · '' Tick count, whether the figure shows, and its suffix (e.g. %).
label string null The input’s accessible label.

Snippet

<x-nx::glass-slider label="بلندی صدا" :value="$state['volume'] ?? 40" wire:model.live="state.volume" suffix="٪" :ticks="9" />