useCombobox vs useSearchAutocomplete #4724
Unanswered
jenmak-tangelo
asked this question in
Q&A
Replies: 1 comment
-
The main difference is that useComboBox has a button attached to it that will open the popover. Also useSearchAutocomplete includes a clear button to clear the field. I would say that useComboBox is more like a select/picker component that supports filtering down options (although it does also support custom values), where useSearchAutocomplete is more for showing suggestions in a search input field. Both use the combobox ARIA pattern. You'll notice that under the hood, useSearchAutocomplete uses both useComboBox and useSearchField. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am wondering when it is appropriate to use the useComboBox and when to use the useSearchAutocomplete. What is the main difference between the two?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions