segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.39k stars 832 forks source link

Component Request: Slider #1432

Open ChrisCosentino opened 2 years ago

ChrisCosentino commented 2 years ago

Component request to create a slider component:

PropTypes = {
   // returns the value on the slider
  onChange: PropTypes.func

  // The min and max values
  min: number
  max: number

  // 2 slider controls on the same line
  range: bool

  // Vertical or horizontal
  position: "horizontal" || "vertical"

  // interactable
  disabled: bool
}

I can make something similar to this:

image