primitives icon indicating copy to clipboard operation
primitives copied to clipboard

[Select] Support multiple selections

Open ghost opened this issue 2 years ago • 57 comments

ghost avatar Mar 25 '22 06:03 ghost

Hi @aungbobotun , I suppose this is a feature request? If so, it is on our broad roadmap, but hasn't been planned or prioritised yet.

benoitgrelard avatar Mar 31 '22 13:03 benoitgrelard

+1, would be nice to have a multiple select primitive. Great lib btw

pavel-mazhuga avatar Jun 10 '22 06:06 pavel-mazhuga

Is there someone who managed to modify the select primitive and make it multi select?

cserb avatar Jul 12 '22 14:07 cserb

Is there someone who managed to modify the select primitive and make it multi select?

Doubt that. I looked at radix source code, the Root primitive and the SelectItem primitive talk to each other through context, and what it uses is a const [selectedItem, setSelectedItem] = React.useState<SelectItemElement | null>(null); piece of state.

You'll have to rewrite more than half of the Select primitive for it to work with multiple selected items, it would still break a lot of functionality like keyboard controls, and a lot of built-in accessibility is also lost, so it's probably easier to just use something like react-select until radix adds a new MultiSelect primitive. You can't really adapt the existing primitive without writing a multiselect from scratch.

grumd avatar Aug 30 '22 15:08 grumd

Bumping this feature request.

wongmrdev avatar Jan 26 '23 18:01 wongmrdev

Would be great to have it.

BleedingDev avatar Jan 31 '23 09:01 BleedingDev

+1

dpromisel avatar Feb 01 '23 18:02 dpromisel

+1

Alarid avatar Feb 07 '23 17:02 Alarid

+1

sinbad-io avatar Feb 21 '23 10:02 sinbad-io

Having a multi-select would better position Radix against HeadlessUI, which does have a multi-select. I don't mind installing both libraries, and I could never only use HeadlessUI since Radix has so much that HeadlessUI does not.

Johnrobmiller avatar Feb 28 '23 16:02 Johnrobmiller

+1

timnlupo avatar Mar 22 '23 16:03 timnlupo

+1

Melvynx avatar Apr 09 '23 08:04 Melvynx

+1

Andree37 avatar Apr 14 '23 15:04 Andree37

+1

ghost avatar Apr 25 '23 10:04 ghost

+1

boazhoch avatar May 04 '23 06:05 boazhoch

+1

austinm911 avatar May 11 '23 18:05 austinm911

Please make this :)

Nhollas avatar May 11 '23 19:05 Nhollas

+1 definitely looking forward to this

bekyarov avatar May 20 '23 15:05 bekyarov

Having a multiple select primitive would be immensely valuable! I want to use it to improve UX for my users who have to hide one table column at a time.

hegelstad avatar May 26 '23 19:05 hegelstad

This missing feature is one of the few things that still "forces" me to use Headless UI. It'd be super cool to see this soon!

josepdecid avatar May 27 '23 13:05 josepdecid

+1 - agree! Would love this

MathiasHoeyrup avatar Jun 05 '23 08:06 MathiasHoeyrup

+1

axelmylle avatar Jun 09 '23 11:06 axelmylle

+1 agree

nguyenkhang2801 avatar Jun 14 '23 04:06 nguyenkhang2801

+1 do it

tonnoz avatar Jun 23 '23 11:06 tonnoz

+1

damyco avatar Jun 23 '23 14:06 damyco

+1

daskimmel avatar Jun 23 '23 21:06 daskimmel

it is really spammy this all +1, many notifications for nothing, can't you use the thumb up on the first issue's comment thanks!

kuus avatar Jun 25 '23 21:06 kuus

+1

admhemed avatar Jun 28 '23 23:06 admhemed

+1

0xboga avatar Aug 01 '23 09:08 0xboga

+1

AbrialStha avatar Sep 10 '23 06:09 AbrialStha