Skip to main content
Version: Next

TagsInput API

import { TagsInput } from '@editora/ui-react';

Props​

PropTypeDescription
addOnBlurboolean
allowDuplicatesboolean
counterboolean
descriptionstring
disabledboolean
labelstring
maxTagsnumber
namestring
onChange(value: string[]) => void
onTagAdd(detail: { tag: string; value: string[] }) => void
onTagRemove(detail: { tag: string; index: number; value: string[] }) => void
placeholderstring
readOnlyboolean
requiredboolean
valuestring[] | string

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-tags-input>​

TagsInput renders the ui-tags-input custom element from @editora/ui-core, which can also be used without React.

Attributes: aria-describedby, aria-description, aria-label, counter, data-error, description, disabled, label, max-tags, name, placeholder, readonly, required, value

Events: change, input, tag-add, tag-remove