@univerjs/design v0.5.0-beta.1Docs


Interface: ISliderProps

Properties

PropertyTypeDescriptionDefined in
disabled?booleanWhether the slider is disabled Default falsesubmodules/univer/packages/design/src/components/slider/Slider.tsx:47
max?numberThe maximum value the slider can slide to Default 400submodules/univer/packages/design/src/components/slider/Slider.tsx:41
min?numberThe minimum value the slider can slide to Default 0submodules/univer/packages/design/src/components/slider/Slider.tsx:35
onChange?(value: number) => void(value) => voidsubmodules/univer/packages/design/src/components/slider/Slider.tsx:59
resetPoint?numberThe maximum value the slider can slide to Default 100submodules/univer/packages/design/src/components/slider/Slider.tsx:53
shortcuts?number[]Shortcuts of slidersubmodules/univer/packages/design/src/components/slider/Slider.tsx:56
valuenumberThe value of slider. When range is false, use number, otherwise, use [number, number]submodules/univer/packages/design/src/components/slider/Slider.tsx:29