Bootstrap tags is an UI component based on Bootstrap 4 and jQuery to create dynamic pills list element.
Simple tags with default options and few lines of CSS.
This is example how you can customize tags to anything you like.
This is an example of including tags in a form and using a custom function when duplicate tags are added it will highlight duplicate.