Chip/Pill Input #3311
-
Are there any plans to make a chip input style component? We have a usecase for something like in this video -- chip_input.movI've seen similar discussion around chips/pills to display selected options within the combobox but nothing similar for this usecase where it would just be an input. I thought it might be possible replicate the UI with a TextArea and FormPill but it seems TextArea doesn't play nicely having components inside it, since it's expecting only text? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We've not really considered this as part of the roadmap officially. We feel it's fairly straight forward to compose with the pieces we provide, it might just not be as obvious as we'd like it to be. I knocked up a quick code sandbox to demonstrate: https://codesandbox.io/s/composer-and-pill-custom-mc56h3?file=/src/index.tsx The first part of it is acknowledging you can't place anything in HTML input elements other than strings. Essentially, even with the multi select combobox, the pills are never in the input. They just look like they are. They are siblings to the input with a border placed around them both. Internally, we use Hope that helps |
Beta Was this translation helpful? Give feedback.
Hi @bthomasstill
We've not really considered this as part of the roadmap officially. We feel it's fairly straight forward to compose with the pieces we provide, it might just not be as obvious as we'd like it to be.
I knocked up a quick code sandbox to demonstrate: https://codesandbox.io/s/composer-and-pill-custom-mc56h3?file=/src/index.tsx
The first part of it is acknowledging you can't place anything in HTML input elements other than strings. Essentially, even with the multi select combobox, the pills are never in the input. They just look like they are. They are siblings to the input with a border placed around them both. Internally, we use
InputBox
andInputElement
to achieve this. El…