Tag Input

React tag input component for entering multiple unique values as chip-style tokens, with suggestion dropdown and keyboard editing

import { TagInput } from "@plexui/ui/components/TagInput";

Examples

Overview

size
minRows
pill

Inline filter row

size
pill
ada@plexui.com
grace@plexui.com

Suggestions

size
pill
React
TypeScript

Reference

PropTypeDefaultDescription
valueTag[]Controlled value
defaultValueTag[]Uncontrolled initial tags
onChange(tags: Tag[]) => voidChange handler
placeholderstringInput placeholder
validator(value: string) => booleanValidates each tag; invalid tags shown in red
maxTagsnumberMax tags before input is disabled
rowsnumber1Min rows
size'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'xlControl height when rows=1; matches Input height of the same size
pillbooleanfalseFully-rounded container and chips; matches Input/SelectControl pill
autoFocusbooleanfalseFocus on mount