Autodesk / orion-ui

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

Add TextArea #285

Open nfiniteset opened 7 years ago

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

Typical usage

<TextArea
  label="Life story"
  onChange={this.setUserLifeStory}
  initialValue={lifeStory}
  placeholder="Tell us a little about yourself"
/>

Complete props

Input.propTypes = {
  name: PropTypes.string,
  value: PropTypes.bool,
  label: PropTypes.string,
  required: PropTypes.string
  disabled: PropTypes.bool,
  instructions: PropTypes.string,
  onBlur: PropTypes.func,
  onChange: PropTypes.func,
  onFocus: PropTypes.func,
}

TODO

camwest commented 7 years ago

Rejects:

shannonwells commented 7 years ago

@camwest This is exported globally and it is in its own story in storybook