Skip to content

SliderProps beta ​

Interface of @v12-engine/client/kit

ts
export interface SliderProps

What a Slider is given: its value, range and step, and what to tell of it

Members ​

"aria-label" ​

ts
'aria-label'?: string;

Its name, for a screen reader, when nothing next to it says it

ark ​

ts
ark?: Partial<Omit<ArkSlider.RootProps, 'value' | 'children' | 'class'>>;

The rest of Ark's slider, which it is (orientation, origin...): Ark's own, not the kit's to promise

class ​

ts
class?: string;

CSS classes added to the slider's element

disabled ​

ts
disabled?: boolean;

Whether it cannot be moved: dimmed

max ​

ts
max: number;

The most it slides to

min ​

ts
min: number;

The least it slides to

mixed ​

ts
mixed?: boolean;

Of several things that have different values: the thumb stands faded where value is, the number says mixed, and a move sets every one

onCommit ​

ts
onCommit?: (value: number) => void;

Told once it is let go, with where it was left: for what is too much to do at every step of the way

onValue ​

ts
onValue?: (value: number) => void;

Told as it slides. Left out, it is told when let go alone (onCommit)

show ​

ts
show?: ((value: number) => string) | false;

What to show of the value next to it: the value itself when left out, nothing for false

step ​

ts
step?: number;

How far a step of it goes: 1 when left out

value ​

ts
value: number;

The number it stands at, between min and max