-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat]: Autocomplete component. An Autocomplete is not a combobox nor a command component. #3423
Comments
I believe this is a duplicate of #173. |
I been looking for this as well, thanks for the examples |
Actually it is not, but it's related. |
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you. |
Hey, @samuelkarani is right. #173 is mislabeled. There are now a few closed issues as well as comments within #173 explaining that combobox !== autocomplete, but these seem to be buried by commenters who are confusing the two. Autocomplete should be like a freeform input textbox that allows you to enter any text you want, and it also allows you to select from a list. #173 and others are, as far as I can tell, mostly about modifying the combobox format so that the popover is triggered by a textbox. The user is still fundamentally forced to pick an option. As has been pointed out elsewhere, this is the desired behavior: https://mantine.dev/core/autocomplete/ @shadcn can we reopen this issue? I think the desire for this component is greater than might appear at first blush, people keep asking for it but it's spread out across different issues and comments. |
Feature description
Shadcn is lacking the Autocomplete component. This is an input text/search that shows a popover when focused or when typing otherwise no popover is shown (unlike command component). Also the trigger for the popover/dropdown is the input component only being focussed or receiving text input, and not some additional component (unlike the combobox component)
Example of a custom shadcn autocomplete component: https://www.armand-salle.fr/post/autocomplete-select-shadcn-ui
Example of an standalone autocomplete npm package: https://react-autosuggest.js.org/
Example from mantine ui: https://mantine.dev/core/autocomplete
Affected component/components
No response
Additional Context
Additional details here...
Before submitting
The text was updated successfully, but these errors were encountered: