Cards JS behaviour

Precision slider

The slider with a large rolling number, fine ticks that fill with the value, and the range’s two ends — for values that must be set precisely.

Real scenarios

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

Tuning the agent

The headline rolls to every new value; temperature goes live to the server, the budget posts with the form.

On the server: temperature — · budget —

A scale worth reading

ticks and major-every shape the ruler; unit rides beside the number. This one sets how long an agent may think before handing over.

Patience on the server: —

Important props

Important props
Prop Type Default What it does
label string null The label above the slider.
unit / prefix string null The text around the rolling number (unit and prefix).
decimals int null The number’s fraction digits.
ticks / majorEvery int null The tick interval and how often a major one falls.

Snippet

<x-nx::precision-slider label="دما" min="0" max="2" step="0.01" value="0.7" decimals="2" wire:model.live="state.temperature" />