hc-oss / react-tag-input-component

lightweight react component for tag(s) input
https://codesandbox.io/s/react-tag-input-component-rgf97
MIT License
82 stars 36 forks source link

[Improvement] - Add limit tags #13

Closed zzleomar closed 2 years ago

zzleomar commented 2 years ago

Improvement

harshzalavadiya commented 2 years ago

@zzleomar Thanks for the PR, but latest release (v1.1.0) introduces genric custom validation before adding so functionality like this can be achieved very easily,

Example: https://codesandbox.io/s/nostalgic-moon-ly119d?file=/src/App.js

also you can do this by disabling component by measuring length of value as well :)