day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
798 stars 147 forks source link

Multi-Select + Autocomplete #115

Closed Conaws closed 3 years ago

Conaws commented 7 years ago

I know you already have a component for typeahead, and for selection, but I found I needed to combine the two, so I built a component that mixes both to create a sort of "Tag" interface.

tags

If you'd accept a PR, I can convert into re-com style hoc

https://gist.github.com/Conaws/0c191c29f9e9f3781efa4b3535d28e7f # # #

mike-thompson-day8 commented 7 years ago

Looks terrific. We'd love a PR

Frozenlock commented 7 years ago

@Conaws any update on this?

Conaws commented 7 years ago

Update: submitted a PR, but it isn't a full re-com component yet, and I'm offline for next few weeks.

I updated the gist and added all the relevant css classes, so if you're cool passing in an option map rather than using the re-com style options you can also copy the code from here

https://gist.github.com/Conaws/0c191c29f9e9f3781efa4b3535d28e7f

superstructor commented 3 years ago

As of 2.12.0 both a multi-select and tag-dropdown component have been added, which while not identical to the above example I believe should cover all the same use cases.