ComponentsTags Input

TagsInput

A tags input is a single or multiline control that allows the input of tags.

GitHub LogoSource Code

Custom tag addition

You can configure custom tag addition behavior, via the commitTagOn or commitOnBlur properties.

Controlled

Control the input with the value/onChange props. The value is an array of either string or HvTag props.

Controlled validation

Control the addition and removal of tags with the onAdd and onRemove props respectively.

Suggestions

Auto-complete suggestions can be shown by using the suggestionListCallback prop, similar to HvInput’s. The suggestionsLoose allows adding any value besides the suggestions.