Skip to content
Tag input, light
Light
Tag input, dark
Dark

Every state

  • Tag input, default, light
    Tag input, default, dark

    default

  • Tag input, empty, light
    Tag input, empty, dark

    empty

  • Tag input, focus, light
    Tag input, focus, dark

    focus

  • Tag input, filled, light
    Tag input, filled, dark

    filled

  • Tag input, duplicate, light
    Tag input, duplicate, dark

    duplicate

  • Tag input, error, light
    Tag input, error, dark

    error

  • Tag input, disabled, light
    Tag input, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"project-tags"Input id; the description and error ids hang off it.
namestring"tags"Form name of a hidden input with the tags, comma-separated.
labelstring"Tags"Field label.
descriptionstring"Press Enter or a comma after each tag."Line under the field; the count follows it.
placeholderstring"Add a tag"Placeholder while there is room for more tags.
defaultValuestring[]["research", "interviews"]Tags to start with.
maxnumber5Most tags allowed; one more is refused with a message.
ignoreCasebooleantrueTreat tags that differ only in case as duplicates.
onChange(tags: string[]) => void–Called with the new list after every add or remove.
errorstring–An error from outside (a server check), shown until the tags change.
disabledboolean–Disables the field and the remove buttons.
classNamestring–Extra classes on the field.

More multi-selects

All 6

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans