SliderProps beta
Interface of @v12-engine/client/kit
export interface SliderPropsWhat a Slider is given: its value, range and step, and what to tell of it
Members
"aria-label"
'aria-label'?: string;Its name, for a screen reader, when nothing next to it says it
ark
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
class?: string;CSS classes added to the slider's element
disabled
disabled?: boolean;Whether it cannot be moved: dimmed
max
max: number;The most it slides to
min
min: number;The least it slides to
mixed
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
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
onValue?: (value: number) => void;Told as it slides. Left out, it is told when let go alone (onCommit)
show
show?: ((value: number) => string) | false;What to show of the value next to it: the value itself when left out, nothing for false
step
step?: number;How far a step of it goes: 1 when left out
value
value: number;The number it stands at, between min and max