searchfield icon indicating copy to clipboard operation
searchfield copied to clipboard

Trigger input based search

Open maheshj01 opened this issue 1 year ago • 1 comments

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

image

Additional context Add any other context or screenshots about the feature request here.

maheshj01 avatar Mar 07 '24 00:03 maheshj01

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

maheshj01 avatar Mar 14 '24 13:03 maheshj01