@dxos/react-ui
    Preparing search index...

    Type Alias SliderProps

    SliderProps: ThemedClassName<
        Omit<
            SliderPrimitive.RootProps,
            | "children"
            | "value"
            | "defaultValue"
            | "onValueChange"
            | "onValueChangeEnd"
            | "aria-label"
            | "aria-labelledby"
            | "thumbAlignment"
            | "thumbSize",
        >,
    > & {
        "aria-label"?: string;
        defaultValue?: number[];
        label?: ReactNode;
        onValueChange?: (value: number[]) => void;
        onValueCommit?: (value: number[]) => void;
        thumbLabels?: string[];
        value?: number[];
    }

    Type declaration

    • Optionalaria-label?: string

      Names a single thumb without a visible label.

    • OptionaldefaultValue?: number[]
    • Optionallabel?: ReactNode

      Visible label above the track; names a single thumb.

    • OptionalonValueChange?: (value: number[]) => void
    • OptionalonValueCommit?: (value: number[]) => void

      Fires once when a drag or key repeat ends.

    • OptionalthumbLabels?: string[]

      Accessible name per thumb, by index: role="slider" has no text a label's htmlFor can reach. Required whenever there is more than one thumb; with a visible label too, each thumb reads as "

    • Optionalvalue?: number[]

      One entry per thumb.