viclafouch / mui-chips-input

📌 A chips input designed for MUI (Material ui) V6
https://viclafouch.github.io/mui-chips-input/
MIT License
83 stars 19 forks source link

Is there a way to force the chips values to be unique? #15

Closed ErezBiren closed 1 year ago

ErezBiren commented 1 year ago

Hi.

Is your feature request related to a problem? Please describe. I need the chips to be unique so every chip text will appear only once.

Describe the solution you'd like A new property that set the uniqueness true\false. (although I can't think why someone would like it to be not unique)

viclafouch commented 1 year ago

You can use the validate prop and check if the value exists in your array