searchfield
searchfield copied to clipboard
Trigger input based search
Is your feature request related to a problem? Please describe.
In a chat application users would want to see suggestions only when inputting certain terms e.g pressing @ shows list of users in a group chat or # shows topics
Additional context Add any other context or screenshots about the feature request here.
We also have a SuggestionState.expand which shows suggestions when it is brought into focus, For this feature should work we should mandate Searchfield to be in SuggestionState.hidden state.
- [ ] Suggestions Trigger should take a triggerChar as a parameter
- [ ] Test that the suggestions are displayed when the triggerChar is typed
- [ ] Expose onTriggerCharTyped callback