voyager-admin/voyager

View on GitHub
docs/formfields/tags.md

Summary

Maintainability
Test Coverage
# Tags

This formfield allows you to enter one or multiple free-text tags.  
Enter your text and hit enter to create a tag.  
To remove the previous tag, simply hat backspace twice.

![Tags input](/formfields/tags/tags.png) 

## Options

### Min and Max

The min and max option allow you to restrict users to enter less or more than the given amount of tags.  

::: info
Please note that the min/max options **do not** replace validation!  
They only server as visual feedback for the user.
:::

### Allow reordering

Allows to reorder tags by dragging them.

### Allow duplicates

Allow to enter the same tags multiple times.

### Allow empty tags

Allow to enter empty tabs.  
If false, empty tags will be removed.

### Color

Select the color of the tags here.