SliderWithInput

SliderWithInput combines a slider with an input number field, allowing users to adjust values either by dragging the slider or entering a precise number in the input field.

import { SliderWithInput } from '@lobehub/ui';

Default

APIs

PropertyDescriptionTypeDefault
valueCurrent valuenumber-
defaultValueDefault valuenumber-
minMinimum valuenumber-
maxMaximum valuenumber-
stepValue step for slider and inputnumber-
sizeSize of the input field'small' | 'middle' | 'large'-
controlsWhether to show number controls in inputboolean-
gapSpace between slider and inputnumber16
disabledWhether component is disabledboolean-
stylesCustom styles for components{ input?: CSSProperties; slider?: CSSProperties }-
classNamesCustom class names for components{ input?: string; slider?: string }-