Open nfiniteset opened 7 years ago
As a developer I want to add dropdowns to my application So that my users can submit information to the application
<Dropdown label="Prefix" onChange={this.setUserPrefix} initialValue={user.prefix} > {options.map(option => { <Option label={option.label} value={option.value} selected={this.state.selectedOptionId === option.id} /> });} </Dropdown>
Dropdown.propTypes = { name: PropTypes.string, label: PropTypes.string, required: PropTypes.string disabled: PropTypes.bool, onBlur: PropTypes.func, onChange: PropTypes.func, onFocus: PropTypes.func, } Option.propTypes = { label: PropTypes.string, value: PropTypes.any, selected: PropTypes.bool, }
TODO
Typical usage
Complete props
TODO