Skip to content

Commit

Permalink
Update README.md to include 'valueComponent' prop (#1803)
Browse files Browse the repository at this point in the history
* Update README.md to include 'valueComponent' prop

Thanks to some very helpful feedback I received in this repo (and reading through some issues other users were having) I found there was a valueComponent prop that I could utilize that made my life so much easier.  I think it needs to be included in the list of available props in the docs.

* Update README.md to include 'valueComponent' prop

(edited with suggested changes made)

* Minor copy edits of valueComponent description
  • Loading branch information
lstuartfry authored and agirton committed Jun 21, 2017
1 parent ce81389 commit d8a34ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ function onInputKeyDown(event) {
| loadingPlaceholder | string\|node | 'Loading...' | label to prompt for loading search result |
| tabSelectsValue | bool | true | whether to select the currently focused value when the `[tab]` key is pressed |
| value | any | undefined | initial field value |
| valueComponent | func | <Value /> | function which returns a custom way to render/manage the value selected `<CustomValue />` |
| valueKey | string | 'value' | the option property to use for the value |
| valueRenderer | func | undefined | function which returns a custom way to render the value selected `function (option) {}` |

Expand Down

0 comments on commit d8a34ec

Please sign in to comment.