TagInput
Free-form text tokens with keyboard entry, removal and named form values.
Preview
DesignReact
Design, ReactUse TagInput
TagInput is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- Use TagInput for values the user may create. Use MultiSelect for a fixed option collection.
- Enter and configured delimiters commit trimmed, unique tags. Pasting separated text adds multiple tags. IME composition is preserved.
- Each committed tag submits one entry under name. required applies to committed tags; a draft is not a submitted token. Form reset preserves controlled ownership.
- Backspace on an empty draft removes the last token. Read only preserves copying and form values; disabled omits submission and removal. Introduced in 0.2.7.
API reference
View TypeScript source