TagsInput API
import { TagsInput } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
addOnBlur | boolean | |
allowDuplicates | boolean | |
counter | boolean | |
description | string | |
disabled | boolean | |
label | string | |
maxTags | number | |
name | string | |
onChange | (value: string[]) => void | |
onTagAdd | (detail: { tag: string; value: string[] }) => void | |
onTagRemove | (detail: { tag: string; index: number; value: string[] }) => void | |
placeholder | string | |
readOnly | boolean | |
required | boolean | |
value | string[] | 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