I'm sure you could come up with a markup to achieve something like this. Basically having a
- horizontal components array that contains:
- one label compnent
- and one button component (with the X button)
- And attach action handler only on the button.
I guess it would work, but we need to first think about why this is not supported natively (as in, iOS doesn't have a native UI for tags). That's because this tag UI was created for the desktop paradigm and it's easy to click on the small X button with your mouse. But that's not the case on a mobile context.
I would recommend instead of having "tags", have multiple rows of items that represent tags and have a "delete" button for each of them, like this:
That said, I've seen people implement tags using the method I mentioned above and they seem to work fine, so if you really want to implement them that way, feel free to, just thought I would share my thought