Replies: 11 comments
-
The
|
Beta Was this translation helpful? Give feedback.
-
This could probably be composed as suggested above, but that doesn't turn it into a form control. Baking in the ability to manage a collection of values and validity like other form controls would be pretty useful. |
Beta Was this translation helpful? Give feedback.
-
I was trying to make this work based on |
Beta Was this translation helpful? Give feedback.
-
I created a tags input with Demo: Go to https://grapherx.netlify.app/ and select the "Algebra" node. As you can see, it starts breaking when |
Beta Was this translation helpful? Give feedback.
-
@nadenf I built this control a while back: https://github.com/whitefusionhq/sl-tags-input It hasn't been properly vetted for accessibility, but it might help you in a pinch. |
Beta Was this translation helpful? Give feedback.
-
Calcite library does have a webcomponent that supports tags input - both from a list as well as custom user values: https://developers.arcgis.com/calcite-design-system/components/combobox/ |
Beta Was this translation helpful? Give feedback.
-
@nileshtrivedi The one you've linked to works a lot like |
Beta Was this translation helpful? Give feedback.
-
Actually it does: allowCustomValues |
Beta Was this translation helpful? Give feedback.
-
I built a shoelace tag input component recently that you could reference here: https://github.com/webrecorder/browsertrix-cloud/blob/main/frontend/src/components/tag-input.ts It has dependencies on lit-html, shoelace, and lodash for debounce/throttle. Screen.Recording.2023-02-07.at.12.11.38.PM.movNeeds some accessibility & keyboard navigation improvements but it's in active use. (Kudos @Shrinks99 for the design.) |
Beta Was this translation helpful? Give feedback.
-
will this ever be part of Shoelace ? |
Beta Was this translation helpful? Give feedback.
-
Any chance this will get added? I also like how PrimeNG handles the chip input idea, where you can type arbitrary text and press Enter and have it added to the chips list https://primeng.org/chips I'll cobble something together with sl-tag in the meantime |
Beta Was this translation helpful? Give feedback.
-
What issue are you having?
There is a tag component but not a built-in way to create them.
Describe the solution you'd like
I would like a Shoelace equivalent of this: https://olahol.github.io/react-tagsinput/
Based on a combination of the Input + Tag components.
Beta Was this translation helpful? Give feedback.
All reactions