Components · Forms · Tag Input
Back to Tag InputTag InputNew
Use for free-form short values - tags, keywords, emails - added with Enter or comma.
Properties
Size, corner radius and the content options below are properties of the same component, not separate elements - change them to check this component's appearances and states in the Live Preview.
Live Preview
Every appearance side by side, each in every state. One full matrix is rendered per selected Size and Corner radius combination.
When to use
Free-form short values people add as they type.
Component Guide
Overview
Tag Input is one field holding removable tag chips and a text input. Enter or comma adds a tag; Backspace picks then removes the last one; duplicates pulse instead of repeating.
When to Use
- Free-form short values people add as they type.
- Keywords, topics, labels or email lists.
When Not to Use
- Values from a fixed list - use Multi Select.
- A single value - use Input.
Best Practices
- Validate or normalise tags in the change handler.
- Keep to dozens of tags, not hundreds.
- Show a hint for the add keys.
Accessibility
- Each tag has a "Remove <tag>" button.
- Adds, removals and duplicates are announced politely.
- Visible focus ring on the shell and the picked tag.
Related Components
Multi Select, Input, Tag.
{
"component": "Tag Input",
"category": "Forms",
"summary": "Tag Input is one field holding removable tag chips and a text input. Enter or comma adds a tag; Backspace picks then removes the last one; duplicates pulse instead of repeating.",
"whenToUse": [
"Free-form short values people add as they type.",
"Keywords, topics, labels or email lists."
],
"whenNotToUse": [
"Values from a fixed list - use Multi Select.",
"A single value - use Input."
],
"bestPractices": [
"Validate or normalise tags in the change handler.",
"Keep to dozens of tags, not hundreds.",
"Show a hint for the add keys."
],
"accessibility": [
"Each tag has a \"Remove <tag>\" button.",
"Adds, removals and duplicates are announced politely.",
"Visible focus ring on the shell and the picked tag."
],
"relatedComponents": [
"Multi Select",
"Input",
"Tag"
]
}