We're building an open source Typeahead component that will be published to NPM and also used internally. We want to give each team flexibility on how the list options are provided as well as styling the input and list options.
Requirements are as follows:
- Teams using the Typeahead component need to be able to provide either a local or remote list of options
- Example: One team is using our component to filter through a local array of US states and another team is using it to search for users by first and last name via an API endpoint
- Teams using our Typeahead component must have the ability to render custom options
- Example: Our consumer team needs an icon in the option row but our clinical team does not