UNPKG

@react-md/form

Version:

This package is for creating all the different form input types.

32 lines (31 loc) 1.23 kB
import type { HTMLAttributes } from "react"; import type { SliderPresentation } from "./types"; /** * @remarks \@since 2.5.0 */ export interface SliderTrackProps extends HTMLAttributes<HTMLSpanElement>, SliderPresentation { /** * Boolean if the track should animate the value position whenever the * value changes. This should normally be set to `true` only when the track * is "idle" and not being dragged. */ animate?: boolean; /** * This should be the current value as a percentage for the first thumb that * appears within the slider. */ thumb1Percentage: string; /** * This should be the current value as a percentage for the second thumb that * appears within the slider, but only when behaving as a range slider. */ thumb2Percentage?: string; } /** * The `SliderTrack` component is used to show the distance that the slider can * be dragged as well as a visual indication of the value. The main usage is to * update the custom css properties for the thumb's values. * * @remarks \@since 2.5.0 */ export declare const SliderTrack: import("react").ForwardRefExoticComponent<SliderTrackProps & import("react").RefAttributes<HTMLSpanElement>>;