-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add Combobox
component
#1047
Add Combobox
component
#1047
Conversation
This pull request is being automatically deployed with Vercel (learn more). headlessui-vue – ./packages/playground-vue🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/6L9FuKMNxFDMGh2d4bZxufaN4qet [Deployment for 3e5fc4f failed] headlessui-react – ./packages/playground-react🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/HnNsmg3hxWZ6yQAZa5c6565VrzeM [Deployment for 3e5fc4f failed] |
8f9420e
to
d332b80
Compare
The spec says that the combobox itself is labelled directly by the associated label. The button can however be labelled by the label or itself.
Right now the option list *is* just a listbox. If we were to allow other types in the future this will need to be changable
6214349
to
d015a19
Compare
This PR will add a new
Combobox
component.This component will allow you to render an Input and Options (think of it as a Listbox).
You are in charge of actually filtering the items yourself.
Here is an example of the API using React:
Here is an example of the API using Vue: