Autodesk / orion-ui

UI Components that work seamlessly in multiple UI frameworks
https://goo.gl/shxHPB
Other
22 stars 6 forks source link

Add Range #287

Open nfiniteset opened 7 years ago

nfiniteset commented 7 years ago
As a developer
I want to add range fields to my application
So that my users can submit information to the application

Typical usage

<Range
  label="Opacity"
  disabled={false}
  onChange={this.setOpacity}
  initialValue={this.state.opacity}
  minValue={0}
  maxValue={1}
  step={0.001}
/>

Complete props

Range.propTypes = {
  name: PropTypes.string,
  initialValue: PropTypes.number,
  label: PropTypes.string,
  required: PropTypes.string
  disabled: PropTypes.bool,
  onBlur: PropTypes.func,
  onChange: PropTypes.func,
  onFocus: PropTypes.func,
}

TODO