@iress-oss/ids-mcp-server 6.0.0-alpha.1-canary-20251204032753-fe18cab → 6.0.0-alpha.1-canary-20251204040305-3639454
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/docs/components_components-alert-docs.md +1054 -0
- package/generated/docs/components_components-autocomplete-docs.md +3304 -0
- package/generated/docs/components_components-autocomplete-recipes-docs.md +98 -0
- package/generated/docs/components_components-badge-docs.md +312 -0
- package/generated/docs/components_components-button-docs.md +2339 -0
- package/generated/docs/components_components-buttongroup-docs.md +980 -0
- package/generated/docs/components_components-card-docs.md +1970 -0
- package/generated/docs/components_components-checkbox-docs.md +1083 -0
- package/generated/docs/components_components-checkboxgroup-docs.md +1597 -0
- package/generated/docs/components_components-checkboxgroup-recipes-docs.md +209 -0
- package/generated/docs/components_components-col-docs.md +755 -0
- package/generated/docs/components_components-container-docs.md +172 -0
- package/generated/docs/components_components-divider-docs.md +235 -0
- package/generated/docs/components_components-expander-docs.md +428 -0
- package/generated/docs/components_components-field-docs.md +3345 -0
- package/generated/docs/components_components-filter-docs.md +4091 -0
- package/generated/docs/components_components-hide-docs.md +450 -0
- package/generated/docs/components_components-icon-docs.md +1017 -0
- package/generated/docs/components_components-image-docs.md +168 -0
- package/generated/docs/components_components-inline-docs.md +1962 -0
- package/generated/docs/components_components-input-docs.md +1388 -0
- package/generated/docs/components_components-input-recipes-docs.md +349 -0
- package/generated/docs/components_components-inputcurrency-docs.md +636 -0
- package/generated/docs/components_components-inputcurrency-recipes-docs.md +208 -0
- package/generated/docs/components_components-introduction-docs.md +448 -0
- package/generated/docs/components_components-label-docs.md +229 -0
- package/generated/docs/components_components-link-docs.md +454 -0
- package/generated/docs/components_components-menu-docs.md +2219 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +1455 -0
- package/generated/docs/components_components-modal-docs.md +2002 -0
- package/generated/docs/components_components-panel-docs.md +342 -0
- package/generated/docs/components_components-placeholder-docs.md +98 -0
- package/generated/docs/components_components-popover-docs.md +1631 -0
- package/generated/docs/components_components-popover-recipes-docs.md +537 -0
- package/generated/docs/components_components-progress-docs.md +128 -0
- package/generated/docs/components_components-provider-docs.md +123 -0
- package/generated/docs/components_components-radio-docs.md +499 -0
- package/generated/docs/components_components-radiogroup-docs.md +1573 -0
- package/generated/docs/components_components-readonly-docs.md +277 -0
- package/generated/docs/components_components-richselect-docs.md +6101 -0
- package/generated/docs/components_components-row-docs.md +2172 -0
- package/generated/docs/components_components-select-docs.md +1110 -0
- package/generated/docs/components_components-skeleton-docs.md +467 -0
- package/generated/docs/components_components-skeleton-recipes-docs.md +110 -0
- package/generated/docs/components_components-skiplink-docs.md +220 -0
- package/generated/docs/components_components-slideout-docs.md +1910 -0
- package/generated/docs/components_components-slider-docs.md +1284 -0
- package/generated/docs/components_components-spinner-docs.md +90 -0
- package/generated/docs/components_components-stack-docs.md +730 -0
- package/generated/docs/components_components-table-docs.md +4038 -0
- package/generated/docs/components_components-tabset-docs.md +955 -0
- package/generated/docs/components_components-tabset-tab-docs.md +342 -0
- package/generated/docs/components_components-tag-docs.md +410 -0
- package/generated/docs/components_components-text-docs.md +593 -0
- package/generated/docs/components_components-toaster-docs.md +451 -0
- package/generated/docs/components_components-toggle-docs.md +513 -0
- package/generated/docs/components_components-tooltip-docs.md +564 -0
- package/generated/docs/components_components-validationmessage-docs.md +608 -0
- package/generated/docs/components_contact-us-docs.md +9 -0
- package/generated/docs/components_foundations-accessibility-docs.md +33 -0
- package/generated/docs/components_foundations-consistency-docs.md +44 -0
- package/generated/docs/components_foundations-content-docs.md +18 -0
- package/generated/docs/components_foundations-introduction-docs.md +17 -0
- package/generated/docs/components_foundations-principles-docs.md +60 -0
- package/generated/docs/components_foundations-responsive-layout-docs.md +2692 -0
- package/generated/docs/components_foundations-user-experience-docs.md +53 -0
- package/generated/docs/components_foundations-visual-design-docs.md +39 -0
- package/generated/docs/components_foundations-z-index-stacking-docs.md +288 -0
- package/generated/docs/components_frequently-asked-questions-docs.md +44 -0
- package/generated/docs/components_get-started-develop-docs.md +47 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +85 -0
- package/generated/docs/components_patterns-form-docs.md +2469 -0
- package/generated/docs/components_patterns-form-recipes-docs.md +1597 -0
- package/generated/docs/components_patterns-introduction-docs.md +31 -0
- package/generated/docs/components_patterns-loading-docs.md +1908 -0
- package/generated/docs/components_patterns-shadow-docs.md +195 -0
- package/generated/docs/components_resources-code-katas-docs.md +25 -0
- package/generated/docs/components_resources-introduction-docs.md +28 -0
- package/generated/docs/components_resources-mcp-server-docs.md +23 -0
- package/generated/docs/components_resources-migration-guides-from-v4-to-v5-docs.md +142 -0
- package/generated/docs/components_styling-props-colour-docs.md +91 -0
- package/generated/docs/components_styling-props-elevation-docs.md +69 -0
- package/generated/docs/components_styling-props-radius-docs.md +63 -0
- package/generated/docs/components_styling-props-reference-docs.md +160 -0
- package/generated/docs/components_styling-props-screen-readers-docs.md +66 -0
- package/generated/docs/components_styling-props-sizing-docs.md +217 -0
- package/generated/docs/components_styling-props-spacing-docs.md +545 -0
- package/generated/docs/components_styling-props-typography-docs.md +66 -0
- package/generated/docs/components_versions-docs.md +14 -0
- package/generated/docs/guidelines.md +3083 -0
- package/generated/docs/introduction-docs.md +37 -0
- package/generated/docs/tokens_colour-docs.md +479 -0
- package/generated/docs/tokens_elevation-docs.md +39 -0
- package/generated/docs/tokens_introduction-docs.md +150 -0
- package/generated/docs/tokens_radius-docs.md +67 -0
- package/generated/docs/tokens_spacing-docs.md +87 -0
- package/generated/docs/tokens_typography-docs.md +305 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1284 @@
|
|
|
1
|
+
Slider
|
|
2
|
+
======
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
Sliders provide a visual indication of adjustable content, where the user can select a value from a range usually represented on a horizontal track.
|
|
8
|
+
|
|
9
|
+
* * *
|
|
10
|
+
|
|
11
|
+
Updated
|
|
12
|
+
|
|
13
|
+
**Recently updated**
|
|
14
|
+
|
|
15
|
+
This component has been recently updated with new props. The props have been marked as beta. Please tell us if there are any issues.
|
|
16
|
+
|
|
17
|
+
[](./iframe.html?id=components-slider--default)
|
|
18
|
+
|
|
19
|
+
0
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<IressSlider />
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Props
|
|
28
|
+
-----
|
|
29
|
+
|
|
30
|
+
| Name | Description | Default | Control |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| defaultValue |
|
|
33
|
+
Initial value of the slider. Used for uncontrolled sliders.
|
|
34
|
+
|
|
35
|
+
number
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
| \- | Set number |
|
|
40
|
+
| formatValue |
|
|
41
|
+
|
|
42
|
+
Format the changed value.
|
|
43
|
+
|
|
44
|
+
( value: number, tick?: SliderTickLabelValue, readOnly?: boolean, ) => ReactNode
|
|
45
|
+
|
|
46
|
+
| \- | \- |
|
|
47
|
+
| hiddenValueTooltip |
|
|
48
|
+
|
|
49
|
+
If `true`, the value tooltip will be hidden.
|
|
50
|
+
|
|
51
|
+
boolean
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
| \- | Set boolean |
|
|
56
|
+
| max |
|
|
57
|
+
|
|
58
|
+
Set the maximum value for the slider.
|
|
59
|
+
|
|
60
|
+
number
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
|
65
|
+
|
|
66
|
+
10
|
|
67
|
+
|
|
68
|
+
| Set number |
|
|
69
|
+
| min |
|
|
70
|
+
|
|
71
|
+
Sets minimum value for the slider.
|
|
72
|
+
|
|
73
|
+
number
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
|
78
|
+
|
|
79
|
+
0
|
|
80
|
+
|
|
81
|
+
| Set number |
|
|
82
|
+
| name |
|
|
83
|
+
|
|
84
|
+
The name of the control, which is submitted with the form data.
|
|
85
|
+
|
|
86
|
+
string
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
| \- | Set string |
|
|
91
|
+
| onChange |
|
|
92
|
+
|
|
93
|
+
Emitted when the slider value changes.
|
|
94
|
+
|
|
95
|
+
(e: ChangeEvent<HTMLInputElement>, value?: number) => void
|
|
96
|
+
|
|
97
|
+
| \- | \- |
|
|
98
|
+
| readOnly |
|
|
99
|
+
|
|
100
|
+
If `true`, the user cannot modify the value.
|
|
101
|
+
|
|
102
|
+
boolean
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
| \- | Set boolean |
|
|
107
|
+
| step |
|
|
108
|
+
|
|
109
|
+
Sets the step value of the slider.
|
|
110
|
+
|
|
111
|
+
number
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
|
116
|
+
|
|
117
|
+
1
|
|
118
|
+
|
|
119
|
+
| Set number |
|
|
120
|
+
| tickLabels |
|
|
121
|
+
|
|
122
|
+
List of labels to be displayed.
|
|
123
|
+
|
|
124
|
+
union
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
| \- | Set object |
|
|
129
|
+
| value |
|
|
130
|
+
|
|
131
|
+
Value of the slider. Used for controlled sliders.
|
|
132
|
+
|
|
133
|
+
number
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
| \- | Set number |
|
|
138
|
+
|
|
139
|
+
Examples
|
|
140
|
+
--------
|
|
141
|
+
|
|
142
|
+
### Default value
|
|
143
|
+
|
|
144
|
+
You can set the initial value of the slider using the `defaultValue` prop. If you would like to use a controlled slider, use the `value` prop and sync it with your state using `onChange`.
|
|
145
|
+
|
|
146
|
+
[](./iframe.html?id=components-slider--default-value)
|
|
147
|
+
|
|
148
|
+
3
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
<IressSlider defaultValue\={3} />
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### Props
|
|
157
|
+
|
|
158
|
+
| Name | Description | Default | Control |
|
|
159
|
+
| --- | --- | --- | --- |
|
|
160
|
+
| defaultValue |
|
|
161
|
+
Initial value of the slider. Used for uncontrolled sliders.
|
|
162
|
+
|
|
163
|
+
number
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
| \- | |
|
|
168
|
+
| formatValue |
|
|
169
|
+
|
|
170
|
+
Format the changed value.
|
|
171
|
+
|
|
172
|
+
( value: number, tick?: SliderTickLabelValue, readOnly?: boolean, ) => ReactNode
|
|
173
|
+
|
|
174
|
+
| \- | \- |
|
|
175
|
+
| hiddenValueTooltip |
|
|
176
|
+
|
|
177
|
+
If `true`, the value tooltip will be hidden.
|
|
178
|
+
|
|
179
|
+
boolean
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
| \- | Set boolean |
|
|
184
|
+
| max |
|
|
185
|
+
|
|
186
|
+
Set the maximum value for the slider.
|
|
187
|
+
|
|
188
|
+
number
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
|
193
|
+
|
|
194
|
+
10
|
|
195
|
+
|
|
196
|
+
| Set number |
|
|
197
|
+
| min |
|
|
198
|
+
|
|
199
|
+
Sets minimum value for the slider.
|
|
200
|
+
|
|
201
|
+
number
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
|
206
|
+
|
|
207
|
+
0
|
|
208
|
+
|
|
209
|
+
| Set number |
|
|
210
|
+
| name |
|
|
211
|
+
|
|
212
|
+
The name of the control, which is submitted with the form data.
|
|
213
|
+
|
|
214
|
+
string
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
| \- | Set string |
|
|
219
|
+
| onChange |
|
|
220
|
+
|
|
221
|
+
Emitted when the slider value changes.
|
|
222
|
+
|
|
223
|
+
(e: ChangeEvent<HTMLInputElement>, value?: number) => void
|
|
224
|
+
|
|
225
|
+
| \- | \- |
|
|
226
|
+
| readOnly |
|
|
227
|
+
|
|
228
|
+
If `true`, the user cannot modify the value.
|
|
229
|
+
|
|
230
|
+
boolean
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
| \- | Set boolean |
|
|
235
|
+
| step |
|
|
236
|
+
|
|
237
|
+
Sets the step value of the slider.
|
|
238
|
+
|
|
239
|
+
number
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
|
244
|
+
|
|
245
|
+
1
|
|
246
|
+
|
|
247
|
+
| Set number |
|
|
248
|
+
| tickLabels |
|
|
249
|
+
|
|
250
|
+
List of labels to be displayed.
|
|
251
|
+
|
|
252
|
+
union
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
| \- | Set object |
|
|
257
|
+
| value |
|
|
258
|
+
|
|
259
|
+
Value of the slider. Used for controlled sliders.
|
|
260
|
+
|
|
261
|
+
number
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
| \- | Set number |
|
|
266
|
+
|
|
267
|
+
### Min, max and step
|
|
268
|
+
|
|
269
|
+
To change the selectable values of the default slider you can change the `min`, `max` and `step` properties.
|
|
270
|
+
|
|
271
|
+
For instance, if you set `min` to 10 and `max` to 100 the user is able to select any number between 10 and 100.
|
|
272
|
+
|
|
273
|
+
By setting the `step` property to 10, for example, the user will only be able to select numbers in increments of ten i.e. 10, 20, 30, 40, 50, 60, 70, 80, 90, 100; as shown in the below example.
|
|
274
|
+
|
|
275
|
+
[](./iframe.html?id=components-slider--min-max-and-step)
|
|
276
|
+
|
|
277
|
+
10
|
|
278
|
+
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
<IressSlider
|
|
282
|
+
max\={100}
|
|
283
|
+
min\={10}
|
|
284
|
+
step\={10}
|
|
285
|
+
/>
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
#### Props
|
|
290
|
+
|
|
291
|
+
| Name | Description | Default | Control |
|
|
292
|
+
| --- | --- | --- | --- |
|
|
293
|
+
| defaultValue |
|
|
294
|
+
Initial value of the slider. Used for uncontrolled sliders.
|
|
295
|
+
|
|
296
|
+
number
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
| \- | Set number |
|
|
301
|
+
| formatValue |
|
|
302
|
+
|
|
303
|
+
Format the changed value.
|
|
304
|
+
|
|
305
|
+
( value: number, tick?: SliderTickLabelValue, readOnly?: boolean, ) => ReactNode
|
|
306
|
+
|
|
307
|
+
| \- | \- |
|
|
308
|
+
| hiddenValueTooltip |
|
|
309
|
+
|
|
310
|
+
If `true`, the value tooltip will be hidden.
|
|
311
|
+
|
|
312
|
+
boolean
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
| \- | Set boolean |
|
|
317
|
+
| max |
|
|
318
|
+
|
|
319
|
+
Set the maximum value for the slider.
|
|
320
|
+
|
|
321
|
+
number
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
|
326
|
+
|
|
327
|
+
10
|
|
328
|
+
|
|
329
|
+
| |
|
|
330
|
+
| min |
|
|
331
|
+
|
|
332
|
+
Sets minimum value for the slider.
|
|
333
|
+
|
|
334
|
+
number
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
|
339
|
+
|
|
340
|
+
0
|
|
341
|
+
|
|
342
|
+
| |
|
|
343
|
+
| name |
|
|
344
|
+
|
|
345
|
+
The name of the control, which is submitted with the form data.
|
|
346
|
+
|
|
347
|
+
string
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
| \- | Set string |
|
|
352
|
+
| onChange |
|
|
353
|
+
|
|
354
|
+
Emitted when the slider value changes.
|
|
355
|
+
|
|
356
|
+
(e: ChangeEvent<HTMLInputElement>, value?: number) => void
|
|
357
|
+
|
|
358
|
+
| \- | \- |
|
|
359
|
+
| readOnly |
|
|
360
|
+
|
|
361
|
+
If `true`, the user cannot modify the value.
|
|
362
|
+
|
|
363
|
+
boolean
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
| \- | Set boolean |
|
|
368
|
+
| step |
|
|
369
|
+
|
|
370
|
+
Sets the step value of the slider.
|
|
371
|
+
|
|
372
|
+
number
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
|
377
|
+
|
|
378
|
+
1
|
|
379
|
+
|
|
380
|
+
| |
|
|
381
|
+
| tickLabels |
|
|
382
|
+
|
|
383
|
+
List of labels to be displayed.
|
|
384
|
+
|
|
385
|
+
union
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
| \- | Set object |
|
|
390
|
+
| value |
|
|
391
|
+
|
|
392
|
+
Value of the slider. Used for controlled sliders.
|
|
393
|
+
|
|
394
|
+
number
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
| \- | Set number |
|
|
399
|
+
|
|
400
|
+
### Ticks and labels
|
|
401
|
+
|
|
402
|
+
It is also possible to include ticks and labels for selectable values. This can be done by using the `tickLabels` property and providing an array of numbers and/or `TickLabel` objects.
|
|
403
|
+
|
|
404
|
+
The `TickLabel` object takes value/label pairs. The value is required, however, an optional label property can be provided. If the label property is not specified, slider will display the value for the label.
|
|
405
|
+
|
|
406
|
+
If you provide an array of `TickLabel` objects, the value tooltip (the one that appears above the slider's thumb) will use the label from its matching value.
|
|
407
|
+
|
|
408
|
+
The `tickLabels` prop can also be set to true, in which case they will automatically be inferred from `min`, `max` and `step`.
|
|
409
|
+
|
|
410
|
+
[](./iframe.html?id=components-slider--ticks-and-labels)
|
|
411
|
+
|
|
412
|
+
Zero
|
|
413
|
+
|
|
414
|
+
Zero
|
|
415
|
+
|
|
416
|
+
20
|
|
417
|
+
|
|
418
|
+
40
|
|
419
|
+
|
|
420
|
+
60
|
|
421
|
+
|
|
422
|
+
80
|
|
423
|
+
|
|
424
|
+
100
|
|
425
|
+
|
|
426
|
+
120
|
|
427
|
+
|
|
428
|
+
140
|
|
429
|
+
|
|
430
|
+
160
|
|
431
|
+
|
|
432
|
+
180
|
|
433
|
+
|
|
434
|
+
All
|
|
435
|
+
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
<IressSlider
|
|
439
|
+
max\={200}
|
|
440
|
+
min\={0}
|
|
441
|
+
step\={20}
|
|
442
|
+
tickLabels\={\[
|
|
443
|
+
{
|
|
444
|
+
label: 'Zero',
|
|
445
|
+
value: 0
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
value: 20
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
value: 40
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
value: 60
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
value: 80
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
value: 100
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
value: 120
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
value: 140
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
value: 160
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
value: 180
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
label: 'All',
|
|
476
|
+
value: 200
|
|
477
|
+
}
|
|
478
|
+
\]}
|
|
479
|
+
/>
|
|
480
|
+
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
#### Props
|
|
484
|
+
|
|
485
|
+
| Name | Description | Default | Control |
|
|
486
|
+
| --- | --- | --- | --- |
|
|
487
|
+
| defaultValue |
|
|
488
|
+
Initial value of the slider. Used for uncontrolled sliders.
|
|
489
|
+
|
|
490
|
+
number
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
| \- | Set number |
|
|
495
|
+
| formatValue |
|
|
496
|
+
|
|
497
|
+
Format the changed value.
|
|
498
|
+
|
|
499
|
+
( value: number, tick?: SliderTickLabelValue, readOnly?: boolean, ) => ReactNode
|
|
500
|
+
|
|
501
|
+
| \- | \- |
|
|
502
|
+
| hiddenValueTooltip |
|
|
503
|
+
|
|
504
|
+
If `true`, the value tooltip will be hidden.
|
|
505
|
+
|
|
506
|
+
boolean
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
| \- | Set boolean |
|
|
511
|
+
| max |
|
|
512
|
+
|
|
513
|
+
Set the maximum value for the slider.
|
|
514
|
+
|
|
515
|
+
number
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
|
520
|
+
|
|
521
|
+
10
|
|
522
|
+
|
|
523
|
+
| |
|
|
524
|
+
| min |
|
|
525
|
+
|
|
526
|
+
Sets minimum value for the slider.
|
|
527
|
+
|
|
528
|
+
number
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
|
533
|
+
|
|
534
|
+
0
|
|
535
|
+
|
|
536
|
+
| |
|
|
537
|
+
| name |
|
|
538
|
+
|
|
539
|
+
The name of the control, which is submitted with the form data.
|
|
540
|
+
|
|
541
|
+
string
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
| \- | Set string |
|
|
546
|
+
| onChange |
|
|
547
|
+
|
|
548
|
+
Emitted when the slider value changes.
|
|
549
|
+
|
|
550
|
+
(e: ChangeEvent<HTMLInputElement>, value?: number) => void
|
|
551
|
+
|
|
552
|
+
| \- | \- |
|
|
553
|
+
| readOnly |
|
|
554
|
+
|
|
555
|
+
If `true`, the user cannot modify the value.
|
|
556
|
+
|
|
557
|
+
boolean
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
| \- | Set boolean |
|
|
562
|
+
| step |
|
|
563
|
+
|
|
564
|
+
Sets the step value of the slider.
|
|
565
|
+
|
|
566
|
+
number
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
|
571
|
+
|
|
572
|
+
1
|
|
573
|
+
|
|
574
|
+
| |
|
|
575
|
+
| tickLabels |
|
|
576
|
+
|
|
577
|
+
List of labels to be displayed.
|
|
578
|
+
|
|
579
|
+
union
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
| \- |
|
|
584
|
+
|
|
585
|
+
RAW
|
|
586
|
+
|
|
587
|
+
* tickLabels :
|
|
588
|
+
|
|
589
|
+
\[
|
|
590
|
+
|
|
591
|
+
* 0 :
|
|
592
|
+
|
|
593
|
+
{...} 2 keys
|
|
594
|
+
|
|
595
|
+
* 1 :
|
|
596
|
+
|
|
597
|
+
{...} 1 key
|
|
598
|
+
|
|
599
|
+
* 2 :
|
|
600
|
+
|
|
601
|
+
{...} 1 key
|
|
602
|
+
|
|
603
|
+
* 3 :
|
|
604
|
+
|
|
605
|
+
{...} 1 key
|
|
606
|
+
|
|
607
|
+
* 4 :
|
|
608
|
+
|
|
609
|
+
{...} 1 key
|
|
610
|
+
|
|
611
|
+
* 5 :
|
|
612
|
+
|
|
613
|
+
{...} 1 key
|
|
614
|
+
|
|
615
|
+
* 6 :
|
|
616
|
+
|
|
617
|
+
{...} 1 key
|
|
618
|
+
|
|
619
|
+
* 7 :
|
|
620
|
+
|
|
621
|
+
{...} 1 key
|
|
622
|
+
|
|
623
|
+
* 8 :
|
|
624
|
+
|
|
625
|
+
{...} 1 key
|
|
626
|
+
|
|
627
|
+
* 9 :
|
|
628
|
+
|
|
629
|
+
{...} 1 key
|
|
630
|
+
|
|
631
|
+
* 10 :
|
|
632
|
+
|
|
633
|
+
{...} 2 keys
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
\]
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
|
642
|
+
| value |
|
|
643
|
+
|
|
644
|
+
Value of the slider. Used for controlled sliders.
|
|
645
|
+
|
|
646
|
+
number
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
| \- | Set number |
|
|
651
|
+
|
|
652
|
+
### Flexible ticks and labels
|
|
653
|
+
|
|
654
|
+
As of version 5, `min`, `max` and `step` is no longer automatically inferred from `tickLabels`, allowing you to have more flexible `tickLabels`.
|
|
655
|
+
|
|
656
|
+
You can also use the `formatValue` prop to provide a formatted node to replace the value tooltip.
|
|
657
|
+
|
|
658
|
+
[](./iframe.html?id=components-slider--flexible-ticks-and-labels)
|
|
659
|
+
|
|
660
|
+
\-10°C
|
|
661
|
+
|
|
662
|
+
0°C
|
|
663
|
+
Hypothermia
|
|
664
|
+
|
|
665
|
+
37°C
|
|
666
|
+
Normal
|
|
667
|
+
|
|
668
|
+
45°C
|
|
669
|
+
Wicked witch
|
|
670
|
+
of the west
|
|
671
|
+
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
<IressSlider
|
|
675
|
+
min\={\-10}
|
|
676
|
+
max\={50}
|
|
677
|
+
formatValue\={(value) \=> \`${value}°C\`}
|
|
678
|
+
tickLabels\={\[
|
|
679
|
+
{ value: 0, label: <\>0°C <br />Hypothermia</\> },
|
|
680
|
+
{ value: 37, label: <\>37°C <br />Normal</\> },
|
|
681
|
+
{ value: 45, label: <\>45°C <br />Wicked witch<br />of the west</\> },
|
|
682
|
+
\]}
|
|
683
|
+
/>
|
|
684
|
+
|
|
685
|
+
```
|
|
686
|
+
|
|
687
|
+
#### Props
|
|
688
|
+
|
|
689
|
+
| Name | Description | Default | Control |
|
|
690
|
+
| --- | --- | --- | --- |
|
|
691
|
+
| defaultValue |
|
|
692
|
+
Initial value of the slider. Used for uncontrolled sliders.
|
|
693
|
+
|
|
694
|
+
number
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
| \- | Set number |
|
|
699
|
+
| formatValue |
|
|
700
|
+
|
|
701
|
+
Format the changed value.
|
|
702
|
+
|
|
703
|
+
( value: number, tick?: SliderTickLabelValue, readOnly?: boolean, ) => ReactNode
|
|
704
|
+
|
|
705
|
+
| \- | \- |
|
|
706
|
+
| hiddenValueTooltip |
|
|
707
|
+
|
|
708
|
+
If `true`, the value tooltip will be hidden.
|
|
709
|
+
|
|
710
|
+
boolean
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
| \- | Set boolean |
|
|
715
|
+
| max |
|
|
716
|
+
|
|
717
|
+
Set the maximum value for the slider.
|
|
718
|
+
|
|
719
|
+
number
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
|
724
|
+
|
|
725
|
+
10
|
|
726
|
+
|
|
727
|
+
| |
|
|
728
|
+
| min |
|
|
729
|
+
|
|
730
|
+
Sets minimum value for the slider.
|
|
731
|
+
|
|
732
|
+
number
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
|
737
|
+
|
|
738
|
+
0
|
|
739
|
+
|
|
740
|
+
| |
|
|
741
|
+
| name |
|
|
742
|
+
|
|
743
|
+
The name of the control, which is submitted with the form data.
|
|
744
|
+
|
|
745
|
+
string
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
| \- | Set string |
|
|
750
|
+
| onChange |
|
|
751
|
+
|
|
752
|
+
Emitted when the slider value changes.
|
|
753
|
+
|
|
754
|
+
(e: ChangeEvent<HTMLInputElement>, value?: number) => void
|
|
755
|
+
|
|
756
|
+
| \- | \- |
|
|
757
|
+
| readOnly |
|
|
758
|
+
|
|
759
|
+
If `true`, the user cannot modify the value.
|
|
760
|
+
|
|
761
|
+
boolean
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
| \- | Set boolean |
|
|
766
|
+
| step |
|
|
767
|
+
|
|
768
|
+
Sets the step value of the slider.
|
|
769
|
+
|
|
770
|
+
number
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
|
|
|
775
|
+
|
|
776
|
+
1
|
|
777
|
+
|
|
778
|
+
| Set number |
|
|
779
|
+
| tickLabels |
|
|
780
|
+
|
|
781
|
+
List of labels to be displayed.
|
|
782
|
+
|
|
783
|
+
union
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
| \- |
|
|
788
|
+
|
|
789
|
+
RAW
|
|
790
|
+
|
|
791
|
+
* tickLabels :
|
|
792
|
+
|
|
793
|
+
\[
|
|
794
|
+
|
|
795
|
+
* 0 :
|
|
796
|
+
|
|
797
|
+
{...} 2 keys
|
|
798
|
+
|
|
799
|
+
* 1 :
|
|
800
|
+
|
|
801
|
+
{...} 2 keys
|
|
802
|
+
|
|
803
|
+
* 2 :
|
|
804
|
+
|
|
805
|
+
{...} 2 keys
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
\]
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
|
814
|
+
| value |
|
|
815
|
+
|
|
816
|
+
Value of the slider. Used for controlled sliders.
|
|
817
|
+
|
|
818
|
+
number
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
| \- | Set number |
|
|
823
|
+
|
|
824
|
+
### Hidden labels
|
|
825
|
+
|
|
826
|
+
Specific labels can be hidden for all or specified breakpoints. This can be done by using the `srOnly` property in the `TickLabel` object.
|
|
827
|
+
|
|
828
|
+
When a label is set to hide on a certain breakpoint, it will be hidden on the screen from that breakpoint onwards. You can reveal it on a larger breakpoint by setting the larger breakpoint to false.
|
|
829
|
+
|
|
830
|
+
1. To set the label to hide on all breakpoints you can set the xs property to true: `srOnly: { xs: true }`.
|
|
831
|
+
2. To only show on md and above you can `srOnly: { xs: true, md: false }`.
|
|
832
|
+
|
|
833
|
+
#### Behavior considerations
|
|
834
|
+
|
|
835
|
+
* The labels will always be available to screen readers to ensure best accessibility, as screen readers are not confined by screen space.
|
|
836
|
+
* The `ticksAndLabels` prop will still be used to match the `value` of the slider, even if its been set to be hidden on the user's screen.
|
|
837
|
+
|
|
838
|
+
[](./iframe.html?id=components-slider--hidden-labels)
|
|
839
|
+
|
|
840
|
+
**xl** breakpoint (1200px - 1499px)
|
|
841
|
+
|
|
842
|
+
Zero
|
|
843
|
+
|
|
844
|
+
Zero
|
|
845
|
+
|
|
846
|
+
20
|
|
847
|
+
|
|
848
|
+
40
|
|
849
|
+
|
|
850
|
+
60
|
|
851
|
+
|
|
852
|
+
80
|
|
853
|
+
|
|
854
|
+
100
|
|
855
|
+
|
|
856
|
+
120
|
|
857
|
+
|
|
858
|
+
140
|
|
859
|
+
|
|
860
|
+
160
|
|
861
|
+
|
|
862
|
+
180
|
|
863
|
+
|
|
864
|
+
All
|
|
865
|
+
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
<IressStack gap\="md"\>
|
|
869
|
+
<IressPanel bg\="alt"\>
|
|
870
|
+
<IressText\>
|
|
871
|
+
<kn />
|
|
872
|
+
</IressText\>
|
|
873
|
+
</IressPanel\>
|
|
874
|
+
<IressSlider
|
|
875
|
+
max\={200}
|
|
876
|
+
min\={0}
|
|
877
|
+
step\={20}
|
|
878
|
+
tickLabels\={\[
|
|
879
|
+
{
|
|
880
|
+
label: 'Zero',
|
|
881
|
+
value: 0
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
srOnly: {
|
|
885
|
+
base: true,
|
|
886
|
+
xl: false
|
|
887
|
+
},
|
|
888
|
+
value: 20
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
srOnly: {
|
|
892
|
+
base: true,
|
|
893
|
+
xl: false
|
|
894
|
+
},
|
|
895
|
+
value: 40
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
srOnly: {
|
|
899
|
+
base: true,
|
|
900
|
+
xl: false
|
|
901
|
+
},
|
|
902
|
+
value: 60
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
srOnly: {
|
|
906
|
+
base: true,
|
|
907
|
+
xl: false
|
|
908
|
+
},
|
|
909
|
+
value: 80
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
value: 100
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
srOnly: {
|
|
916
|
+
base: true,
|
|
917
|
+
xl: false
|
|
918
|
+
},
|
|
919
|
+
value: 120
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
srOnly: {
|
|
923
|
+
base: true,
|
|
924
|
+
xl: false
|
|
925
|
+
},
|
|
926
|
+
value: 140
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
srOnly: {
|
|
930
|
+
base: true,
|
|
931
|
+
xl: false
|
|
932
|
+
},
|
|
933
|
+
value: 160
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
srOnly: {
|
|
937
|
+
base: true,
|
|
938
|
+
xl: false
|
|
939
|
+
},
|
|
940
|
+
value: 180
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
label: 'All',
|
|
944
|
+
value: 200
|
|
945
|
+
}
|
|
946
|
+
\]}
|
|
947
|
+
/>
|
|
948
|
+
</IressStack\>
|
|
949
|
+
|
|
950
|
+
```
|
|
951
|
+
|
|
952
|
+
#### Props
|
|
953
|
+
|
|
954
|
+
| Name | Description | Default | Control |
|
|
955
|
+
| --- | --- | --- | --- |
|
|
956
|
+
| defaultValue |
|
|
957
|
+
Initial value of the slider. Used for uncontrolled sliders.
|
|
958
|
+
|
|
959
|
+
number
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
| \- | Set number |
|
|
964
|
+
| formatValue |
|
|
965
|
+
|
|
966
|
+
Format the changed value.
|
|
967
|
+
|
|
968
|
+
( value: number, tick?: SliderTickLabelValue, readOnly?: boolean, ) => ReactNode
|
|
969
|
+
|
|
970
|
+
| \- | \- |
|
|
971
|
+
| hiddenValueTooltip |
|
|
972
|
+
|
|
973
|
+
If `true`, the value tooltip will be hidden.
|
|
974
|
+
|
|
975
|
+
boolean
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
| \- | Set boolean |
|
|
980
|
+
| max |
|
|
981
|
+
|
|
982
|
+
Set the maximum value for the slider.
|
|
983
|
+
|
|
984
|
+
number
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
|
989
|
+
|
|
990
|
+
10
|
|
991
|
+
|
|
992
|
+
| |
|
|
993
|
+
| min |
|
|
994
|
+
|
|
995
|
+
Sets minimum value for the slider.
|
|
996
|
+
|
|
997
|
+
number
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
|
1002
|
+
|
|
1003
|
+
0
|
|
1004
|
+
|
|
1005
|
+
| |
|
|
1006
|
+
| name |
|
|
1007
|
+
|
|
1008
|
+
The name of the control, which is submitted with the form data.
|
|
1009
|
+
|
|
1010
|
+
string
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
| \- | Set string |
|
|
1015
|
+
| onChange |
|
|
1016
|
+
|
|
1017
|
+
Emitted when the slider value changes.
|
|
1018
|
+
|
|
1019
|
+
(e: ChangeEvent<HTMLInputElement>, value?: number) => void
|
|
1020
|
+
|
|
1021
|
+
| \- | \- |
|
|
1022
|
+
| readOnly |
|
|
1023
|
+
|
|
1024
|
+
If `true`, the user cannot modify the value.
|
|
1025
|
+
|
|
1026
|
+
boolean
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
| \- | Set boolean |
|
|
1031
|
+
| step |
|
|
1032
|
+
|
|
1033
|
+
Sets the step value of the slider.
|
|
1034
|
+
|
|
1035
|
+
number
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
|
1040
|
+
|
|
1041
|
+
1
|
|
1042
|
+
|
|
1043
|
+
| |
|
|
1044
|
+
| tickLabels |
|
|
1045
|
+
|
|
1046
|
+
List of labels to be displayed.
|
|
1047
|
+
|
|
1048
|
+
union
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
| \- |
|
|
1053
|
+
|
|
1054
|
+
RAW
|
|
1055
|
+
|
|
1056
|
+
* tickLabels :
|
|
1057
|
+
|
|
1058
|
+
\[
|
|
1059
|
+
|
|
1060
|
+
* 0 :
|
|
1061
|
+
|
|
1062
|
+
{...} 2 keys
|
|
1063
|
+
|
|
1064
|
+
* 1 :
|
|
1065
|
+
|
|
1066
|
+
{...} 2 keys
|
|
1067
|
+
|
|
1068
|
+
* 2 :
|
|
1069
|
+
|
|
1070
|
+
{...} 2 keys
|
|
1071
|
+
|
|
1072
|
+
* 3 :
|
|
1073
|
+
|
|
1074
|
+
{...} 2 keys
|
|
1075
|
+
|
|
1076
|
+
* 4 :
|
|
1077
|
+
|
|
1078
|
+
{...} 2 keys
|
|
1079
|
+
|
|
1080
|
+
* 5 :
|
|
1081
|
+
|
|
1082
|
+
{...} 1 key
|
|
1083
|
+
|
|
1084
|
+
* 6 :
|
|
1085
|
+
|
|
1086
|
+
{...} 2 keys
|
|
1087
|
+
|
|
1088
|
+
* 7 :
|
|
1089
|
+
|
|
1090
|
+
{...} 2 keys
|
|
1091
|
+
|
|
1092
|
+
* 8 :
|
|
1093
|
+
|
|
1094
|
+
{...} 2 keys
|
|
1095
|
+
|
|
1096
|
+
* 9 :
|
|
1097
|
+
|
|
1098
|
+
{...} 2 keys
|
|
1099
|
+
|
|
1100
|
+
* 10 :
|
|
1101
|
+
|
|
1102
|
+
{...} 2 keys
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
\]
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
|
1111
|
+
| value |
|
|
1112
|
+
|
|
1113
|
+
Value of the slider. Used for controlled sliders.
|
|
1114
|
+
|
|
1115
|
+
number
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
| \- | Set number |
|
|
1120
|
+
|
|
1121
|
+
### Read only
|
|
1122
|
+
|
|
1123
|
+
Sliders can be set to read only by using the `readOnly` property. When set to read only the slider will render a read only input and display the specified value.
|
|
1124
|
+
|
|
1125
|
+
If you need more control over the read-only state (for example, rendering a stylised version of the value), you can use the [`IressReadonly` component](?path=/docs/components-readonly--docs).
|
|
1126
|
+
|
|
1127
|
+
[](./iframe.html?id=components-slider--read-only)
|
|
1128
|
+
|
|
1129
|
+
Zero
|
|
1130
|
+
|
|
1131
|
+
```
|
|
1132
|
+
|
|
1133
|
+
<IressSlider
|
|
1134
|
+
max\={200}
|
|
1135
|
+
min\={0}
|
|
1136
|
+
readOnly
|
|
1137
|
+
step\={20}
|
|
1138
|
+
tickLabels\={\[
|
|
1139
|
+
{
|
|
1140
|
+
label: 'Zero',
|
|
1141
|
+
value: 0
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
label: 'All',
|
|
1145
|
+
value: 200
|
|
1146
|
+
}
|
|
1147
|
+
\]}
|
|
1148
|
+
value\={0}
|
|
1149
|
+
/>
|
|
1150
|
+
|
|
1151
|
+
```
|
|
1152
|
+
|
|
1153
|
+
#### Props
|
|
1154
|
+
|
|
1155
|
+
| Name | Description | Default | Control |
|
|
1156
|
+
| --- | --- | --- | --- |
|
|
1157
|
+
| defaultValue |
|
|
1158
|
+
Initial value of the slider. Used for uncontrolled sliders.
|
|
1159
|
+
|
|
1160
|
+
number
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
| \- | Set number |
|
|
1165
|
+
| formatValue |
|
|
1166
|
+
|
|
1167
|
+
Format the changed value.
|
|
1168
|
+
|
|
1169
|
+
( value: number, tick?: SliderTickLabelValue, readOnly?: boolean, ) => ReactNode
|
|
1170
|
+
|
|
1171
|
+
| \- | \- |
|
|
1172
|
+
| hiddenValueTooltip |
|
|
1173
|
+
|
|
1174
|
+
If `true`, the value tooltip will be hidden.
|
|
1175
|
+
|
|
1176
|
+
boolean
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
| \- | Set boolean |
|
|
1181
|
+
| max |
|
|
1182
|
+
|
|
1183
|
+
Set the maximum value for the slider.
|
|
1184
|
+
|
|
1185
|
+
number
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
|
|
|
1190
|
+
|
|
1191
|
+
10
|
|
1192
|
+
|
|
1193
|
+
| |
|
|
1194
|
+
| min |
|
|
1195
|
+
|
|
1196
|
+
Sets minimum value for the slider.
|
|
1197
|
+
|
|
1198
|
+
number
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
|
1203
|
+
|
|
1204
|
+
0
|
|
1205
|
+
|
|
1206
|
+
| |
|
|
1207
|
+
| name |
|
|
1208
|
+
|
|
1209
|
+
The name of the control, which is submitted with the form data.
|
|
1210
|
+
|
|
1211
|
+
string
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
| \- | Set string |
|
|
1216
|
+
| onChange |
|
|
1217
|
+
|
|
1218
|
+
Emitted when the slider value changes.
|
|
1219
|
+
|
|
1220
|
+
(e: ChangeEvent<HTMLInputElement>, value?: number) => void
|
|
1221
|
+
|
|
1222
|
+
| \- | \- |
|
|
1223
|
+
| readOnly |
|
|
1224
|
+
|
|
1225
|
+
If `true`, the user cannot modify the value.
|
|
1226
|
+
|
|
1227
|
+
boolean
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
| \- | FalseTrue |
|
|
1232
|
+
| step |
|
|
1233
|
+
|
|
1234
|
+
Sets the step value of the slider.
|
|
1235
|
+
|
|
1236
|
+
number
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
|
1241
|
+
|
|
1242
|
+
1
|
|
1243
|
+
|
|
1244
|
+
| |
|
|
1245
|
+
| tickLabels |
|
|
1246
|
+
|
|
1247
|
+
List of labels to be displayed.
|
|
1248
|
+
|
|
1249
|
+
union
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
| \- |
|
|
1254
|
+
|
|
1255
|
+
RAW
|
|
1256
|
+
|
|
1257
|
+
* tickLabels :
|
|
1258
|
+
|
|
1259
|
+
\[
|
|
1260
|
+
|
|
1261
|
+
* 0 :
|
|
1262
|
+
|
|
1263
|
+
{...} 2 keys
|
|
1264
|
+
|
|
1265
|
+
* 1 :
|
|
1266
|
+
|
|
1267
|
+
{...} 2 keys
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
\]
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
|
1276
|
+
| value |
|
|
1277
|
+
|
|
1278
|
+
Value of the slider. Used for controlled sliders.
|
|
1279
|
+
|
|
1280
|
+
number
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
| \- | |
|