Skip to content

Commit 6567585

Browse files
authored
Merge branch 'main' into improve-readme-install-instruction
2 parents 49fe452 + 345f761 commit 6567585

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
-278 Bytes
Loading
-7.25 KB
Loading
15.4 KB
Loading

src/pages/components/slider/usage.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,29 @@ a tooltip on hover, focus, and active to show the selected values.
315315
</Column>
316316
</Row>
317317

318+
#### Sliders with custom value
319+
320+
For sliders with custom value, show a tooltip on hover, focus, and active to
321+
display the selected value. These labels can vary by use case, the tooltip
322+
should help users understand their selection without needing a separate input.
323+
324+
For example, between values of low and high, the tooltip should display low when
325+
the handle is near the start of the range, medium when it's around the middle,
326+
and high when it approaches the end.
327+
328+
<Row>
329+
<Column colLg={8}>
330+
331+
![Using a tooltip to show the selected values with custom value](images/slider-modifier-2-tooltip.png)
332+
333+
<Caption>
334+
Example shows custom values as low, medium, and high by using a tooltip to
335+
show the selected values
336+
</Caption>
337+
338+
</Column>
339+
</Row>
340+
318341
## Feedback
319342

320343
Help us improve this component by providing feedback, asking questions, and

0 commit comments

Comments
 (0)