motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Input
  5. Tag Input
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Input

Tag Input

New

A field that turns words into removable tags on Enter or comma, with a nudge when a tag is already there.

npx motionsnack add tag-input

Customize

px
px
<TagInput />

Props

29 properties

PropertyTypeDefaultDescription
valuestring[]-Controlled tags. Leave undefined to let the component manage them.
defaultValuestring[]['Branding', 'Web design', 'Motion']Tags on first render when uncontrolled.
onChange(value: string[]) => void-Called with the new list whenever a tag is added or removed.
namestring-Name submitted with a form; each tag goes as its own value.
separatorsstring[][',', 'Enter']Keys and characters that finish a tag.
validate(tag: string) => string | null-Checks a new tag: returns an error message, or null.
errorColorstringundefinedError colour for both themes. Undefined uses the per-theme pair.
invalidLabelPartial<Record<Intl.LDMLPluralRule, string>>{ one: '{tags} is not valid.', other: '{n} tags are not valid: {tags}.' }Error when several tags fail validate.
removeLabelstring'Remove {tag}'Name of a tag's remove button.
addedLabelstring'{tag} added'Announced after a tag is added.
removedLabelstring'{tag} removed'Announced after a tag is removed.
localestring'en-US'Locale for comparing tags, plurals and lists.
tagsstring[]-Deprecated: use value.
defaultTagsstring[]-Deprecated: use defaultValue.
tagStyle'soft' | 'solid'-Deprecated: tags are always the soft static tag.
tagRadiusnumber-Deprecated: the tag radius is fixed at 6px.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
labelstring'Skills'Label above the field. Empty hides it.
placeholderstring'Add a skill…'Hint inside the field while there is room for more tags.
maxTagsnumber8Most tags the field takes. 0 means no limit.
maxLengthnumber24Longest tag in characters.
helperTextstring'Press Enter or comma to add. Backspace removes the last one.'Small text under the field. Empty hides it.
limitTextstring'You can add up to {n} tags.'Text shown when the limit is reached. {n} is the number.
errorstring''Error message. Any text switches the field to its error state.
requiredbooleanfalseMarks the field as required.
disabledbooleanfalseDisables the field.
heightnumber48Height of the field with one row of tags. It grows with more rows.
radiusnumber12Corner radius of the field.

About Tag Input

Tag Input collects a short list such as skills, keywords or topics. Typing a word and pressing Enter or a comma turns it into a tag that pops into place; pasting a comma-separated list adds them all at once. Backspace in the empty field first marks the last tag and removes it on the second press, so nothing disappears by accident. Adding a tag that is already there nudges the existing one instead of doubling it. A limit on the number and length of tags, soft or solid tags and a hidden form value are built in.

What's included

  • Enter, comma or paste to add tags
  • Two-step Backspace removal
  • Nudge instead of a duplicate
  • Limit on number and length of tags
  • Soft or solid tags
  • Light and dark look
Type
Animated React input component
Library
Components · Input
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add tag-input