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 26 | Android | |
|---|---|---|
| Native component | None: a token field, drawn as the web's phone tags | None: a Plex Android chip field |
| Tags | A 32pt gray pill in a 44pt line, 17pt words, the × in a 44pt target | A 32dp chip, 16 round, the text color at 5%, 14sp words |
| In a List row | The row's bare value under its label | The row's bare value under its label |
API
| Prop | Type | Default | Description |
|---|---|---|---|
value | Tag[] | — | Controlled value |
defaultValue | Tag[] | — | Uncontrolled initial tags |
onChange | (tags: Tag[]) => void | — | Change handler |
placeholder | string | — | Input placeholder |
validator | (value: string) => boolean | — | Validates each tag when it is created; invalid tags shown in red |
maxTags | number | — | Maximum number of tags; at the limit the text field goes |
rows | number | 1 | Min rows |
size | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | xl | Line height of a framed tag input (a row sets its own) |
variant | 'outline' | 'ghost' | outline | ghost has no frame, for a row |
pill | boolean | false | Fully-rounded frame |
delimiters | string[] | [",", " "] | Characters that commit the current text as a tag |
disabled | boolean | — | Tags cannot be added or removed |
autoFocus | boolean | false | Focus on mount |
accessibilityLabel | string | — | The text field's name (the placeholder by default) |
style | StyleProp<ViewStyle> | — | Style of the root |
testID | string | — | Test id |
Tag is { value: string; valid: boolean }.