question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(docs): `SliderMark` not mentioned in the doc, and `SliderThumb` with tooltip

See original GitHub issue

Hello,

The SliderMark tag is not mentioned in the online documentation. Here is an example.

That said, I find it’s easier to set a tooltip to the SliderThumb.

  const [sliderValue, setSliderValue] = React.useState(5);
  <Slider id="slider" defaultValue={5} min={0} max={10} colorScheme="blue" onChange=(v) => {setSliderValue(v)}>
    <SliderTrack>
      <SliderFilledTrack />
    </SliderTrack>
    <Tooltip hasArrow bg="red.600" placement="top" closeOnClick={false} isOpen label={sliderValue}>
      <SliderThumb />
    </Tooltip>
  </Slider>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
YenTingWucommented, Dec 19, 2021

I’ll take this issue

0reactions
stlacommented, Dec 21, 2021

By the way there is also RangeSliderMark now. But well, it’s not necessary to provide an example once an example of SliderMark is given.

Cheers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`SliderMark` not mentioned in the doc, and `SliderThumb` with ...
Hello, The SliderMark tag is not mentioned in the online documentation. Here is an example. That said, I find it's easier to set...
Read more >
React Slider component - Material UI - MUI
Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings...
Read more >
Slider | Buefy
A slider to select a value or range from a given range.
Read more >
Slider - Ant Design
Using marks property to mark a graduated slider, use value or defaultValue to specify the position of thumb. When included is false, means...
Read more >
Slider and its tooltip text in ExtJs are not visible properly with ...
getBody(), hideLabel: true, width: 214, increment: 10, height:60, minValue: 0, maxValue: 100, tipText: function(thumb){ return Ext.String.format ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found