multi value support for Listbox & Combobox (#1243)
* First attempt at a multi-listbox * implement `multiple` mode on Listbox * add multiple Listbox example to playground * implement `multiple` mode on Combobox * make sure groupContext is not undefined or null On vercel, getting a strange issue like `TypeError: undefined is not an object (evaluating 'r.resolveTarget')` which doesn't happen locally or once published. Would expect it to be `null` since we default to `null`. Hopefully this fixes things. * bump all the dependencies * make sure that `@types/react` use set to the correct version `@types/react-dom` hardcoded the `@types/react` to version `16.14.21` instead of using the latest `16.14.24` resulting in type mismatches. *cries in inconsistency* * update changelog * add multiple Combobox example to playground * refactor Combobox, use actions * use combobox data This is a first step in refactoring everything where we use dedicated actions and data instead of accessing the reducer state directly. It also allows us to get rid of mutations in render where we updated some values in render directly which is not ideal. Co-authored-by: pvanliefland <pierre.vanliefland@gmail.com>
Headless UI
A set of completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
Documentation
For full documentation, visit headlessui.dev.
Installing the latest version
You can install the latest version by using:
npm install @headlessui/react@latestoryarn add @headlessui/react@latest.npm install @headlessui/vue@latestoryarn add @headlessui/vue@latest.
Installing the insiders version
You can install the insiders version (which points to whatever the latest commit on the main branch is) by using:
npm install @headlessui/react@insidersoryarn add @headlessui/react@insiders.npm install @headlessui/vue@insidersoryarn add @headlessui/vue@insiders.
Note: The insiders build doesn't follow semver and therefore doesn't guarantee that the APIs will be the same once they are released.
Packages
| Name | Version | Downloads |
|---|---|---|
@headlessui/react |
||
@headlessui/vue |
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using the library:
Join the Tailwind CSS Discord Server
Contributing
If you're interested in contributing to Headless UI, please read our contributing docs before submitting a pull request.