Colored pills in Mantine TagsInput

Hi!
I want to color pills depending on text inside a pill. As I understand there is a Pill Component in original Mantine library. But there is no such component in dash-mantine package.
Maybe you can suggest some workaround for this purpose.

hi @yukian72 ,
The DMC badge is not appropriate enough to replace the pill you mention?

1 Like

Unfortunately, “value” arg of dmc.TagsInput accepts only list[str]. I can’t pass in Badge.
The following code results in TypeError: e.trim is not a function

dmc.TagsInput(
    id="event-tags-selector",
    clearable=True,
    data=['tag1', 'tag2'],
    value=[dmc.Badge('RED', color='red')],
)