Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show label with value like a Tooltip #22

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

BrOrlandi
Copy link

It resolved #6

If anyone wants to use it, we have released this component here @kassellabs/react-semantic-ui-range

The tooltip style customization is totally up to the project that uses it to decide, In our case, we're using it like this:

image

image

<Slider
  value={value}
  discrete={discrete}
  tooltip={(currentValue) => (
    <SliderTooltip position={tooltipPosition} value={currentValue} />
  )}
  style={{
    trackFill: {
      backgroundColor: '#007EA7',
    },
  }}
  settings={{
    tooltipPosition,
    start: value,
    max,
    min,
    step,
    onChange,
  }}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Label as a value indicator
3 participants