Skip to content
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

Listbox multiple selection #51

Closed
iamohd-zz opened this issue Oct 6, 2020 · 7 comments
Closed

Listbox multiple selection #51

iamohd-zz opened this issue Oct 6, 2020 · 7 comments

Comments

@iamohd-zz
Copy link

It would be great to allow the Listbox to select more than one option by passing "multiple" Boolean prop

Example:

<Listbox v-model="selectedPerson" multiple>
    <ListboxButton>{{ selectedPerson.name }}</ListboxButton>
    <ListboxOptions>
      <ListboxOption v-for="person in people" :key="person.id" :value="person" :disabled="person.unavailable">
        {{ person.name }}
      </ListboxOption>
    </ListboxOptions>
</Listbox>
@RobinMalfait
Copy link
Collaborator

Hey! Thank you for your feature request!
Currently that's not possible but it will be in a future version!

@ditschedev
Copy link

ditschedev commented Dec 17, 2020

+1 on this one, would be great!

@tomhrtly
Copy link

Any chance of an update on this one @RobinMalfait?

@mxdi9i7
Copy link

mxdi9i7 commented May 18, 2021

https://gist.github.com/landorid/f747c49342dd9eac1b89b251cbe39616
https://codesandbox.io/s/headlessuireact-listbox-multiple-mockup-widh4

There are some workarounds posted by others from another issue: #181

@arivelli
Copy link

any news on this? any estimated time? thanks

@ajota-admios
Copy link

Any ETA? This is very important :)

@thien-do
Copy link

Looking at Tailwind UI, I think the recommendation now is to use a list of checkboxes https://tailwindui.com/components/ecommerce/components/category-filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants