Tag Input

A field that turns what is typed into removable tags, as the value of a List row or on its own.

import { TagInput } from "@plexui/react-native"

Examples

Overview

Inline filter row

Suggestions

Platforms

iOS 26Android
Native componentNone: a token field, drawn as the web's phone tagsNone: a Plex Android chip field
TagsA 32pt gray pill in a 44pt line, 17pt words, the × in a 44pt targetA 32dp chip, 16 round, the text color at 5%, 14sp words
In a List rowThe row's bare value under its labelThe row's bare value under its label

API

PropTypeDefaultDescription
valueTag[]—Controlled value
defaultValueTag[]—Uncontrolled initial tags
onChange(tags: Tag[]) => void—Change handler
placeholderstring—Input placeholder
validator(value: string) => boolean—Validates each tag when it is created; invalid tags shown in red
maxTagsnumber—Maximum number of tags; at the limit the text field goes
rowsnumber1Min rows
size'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'xlLine height of a framed tag input (a row sets its own)
variant'outline' | 'ghost'outlineghost has no frame, for a row
pillbooleanfalseFully-rounded frame
delimitersstring[][",", " "]Characters that commit the current text as a tag
disabledboolean—Tags cannot be added or removed
autoFocusbooleanfalseFocus on mount
accessibilityLabelstring—The text field's name (the placeholder by default)
styleStyleProp<ViewStyle>—Style of the root
testIDstring—Test id

Tag is { value: string; valid: boolean }.