fmoo / react-typeahead

Pure react-based typeahead and typeahead-tokenizer
ISC License
677 stars 231 forks source link

Custom Option Component #152

Closed smartmike closed 6 years ago

smartmike commented 8 years ago

This PR allows an option to pass through just a custom component for each list item. This helps not to create a complete custom list component, but just to make the list more customisable. For example we used this on a project at edenspiekermann to display a list of user results with an avatar, or icon feedback, with different user objects from an API, without having to rebuild the whole list component.

screen shot 2015-12-15 at 10 15 07

danii1 commented 8 years ago

:+1: hope this will be merged to provide better options for customisation

gregeinfrank commented 8 years ago

@fmoo any plans to support this?

fmoo commented 8 years ago

@gregeinfrank - Can this be done with the current props.displayOption callback?