EEnterUI
DocsComponentsThemesDonation
Get Started
      • TagsInput
      • FileUpload
      • OTPInput
      • TimeInput
EnterUIDocsInputsEditing and UploadToken and File InputsTagsInput
InputsUpdated 6 May 2026

TagsInput

Token entry for emails, labels, keywords, and compact metadata.

TagsInput turns short free-form values into removable tokens. Use it for labels, invite emails, filters, and keyword entry.

#Default usage

Tags input

Press Enter or comma to commit a token.

designdocs
Code
<TagsInput defaultValue={["design", "docs"]} placeholder="Add label" />

#Import

Code
import { TagsInput, TokenInput } from "@froggdesign/enter-ui-react";

#Variants

Validation and limits

Validation can stay local without introducing a heavy form dependency.

stablepublic2/2
invalid scope
Code
<TagsInput
  placeholder="Add email"
  validateTag={(value) => value.includes("@")}
/>

#Accessibility

Each token has a named remove button. Backspace removes the last token when the text field is empty. Use Field when the input needs label, help text, or an error message.

#API

  • value, defaultValue, and onValueChange control tokens.
  • validateTag accepts or rejects a candidate before it is committed.
  • maxTags limits token count.
  • disabled and invalid map to aria state and data attributes.
  • TokenInput is an alias for teams that use token terminology.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousRichTextEditor
NextFileUpload

On this page

  1. Default usage
  2. Import
  3. Variants
  4. Accessibility
  5. API
  6. Styling