Skip to content

Commit d8a34ec

Browse files
lstuartfryagirton
authored andcommitted
Update README.md to include 'valueComponent' prop (JedWatson#1803)
* 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
1 parent ce81389 commit d8a34ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ function onInputKeyDown(event) {
400400
| loadingPlaceholder | string\|node | 'Loading...' | label to prompt for loading search result |
401401
| tabSelectsValue | bool | true | whether to select the currently focused value when the `[tab]` key is pressed |
402402
| value | any | undefined | initial field value |
403+
| valueComponent | func | <Value /> | function which returns a custom way to render/manage the value selected `<CustomValue />` |
403404
| valueKey | string | 'value' | the option property to use for the value |
404405
| valueRenderer | func | undefined | function which returns a custom way to render the value selected `function (option) {}` |
405406

0 commit comments

Comments
 (0)