Discourse toolkit to render forms

What’s the right way to implement a “Multi” Select? ie whereby I can offer the user the ability to update an array from a constant set of enums.

I guess I could use a Checkbox Group

But is there a “dropdown” flavour?

for example if I have some ingredients:

[“rice”, “mango”, “egg”, “salt”, “cumin”]

and I want the user to be able to select none, one, many or all.

And the result should be stored in a single array.

ie a toggle for each member of the full set.

Is there an existing example of this?

1 Like