We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
minimum
1 parent 1092ac7 commit 756556bCopy full SHA for 756556b
packages/ui/src/components/range-slider/stories/range-slider.stories.tsx
@@ -64,6 +64,24 @@ export const Disabled = function () {
64
)
65
}
66
67
+export const NegativeMinimum = function () {
68
+ const [value, setValue] = useState<string>('0')
69
+ function handleInput(event: JSX.TargetedEvent<HTMLInputElement>) {
70
+ const newValue = event.currentTarget.value
71
+ console.log(newValue)
72
+ setValue(newValue)
73
+ }
74
+ return (
75
+ <RangeSlider
76
+ increment={10}
77
+ maximum={100}
78
+ minimum={-100}
79
+ onInput={handleInput}
80
+ value={value}
81
+ />
82
+ )
83
+}
84
+
85
export const CustomIncrement = function () {
86
const [value, setValue] = useState<string>('50')
87
function handleInput(event: JSX.TargetedEvent<HTMLInputElement>) {
0 commit comments