Skip to content

GhostTagsInput reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

Edit free-form text tags with one keyboard Tab stop and native form submission and reset.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
defaultValuereadonly string[]"[]"NoInitial uncontrolled tags and reset baseline.
delimitersreadonly (',' | ';')[]"[]"NoOptional typed and pasted separators.
disabledbooleanfalseNoDisables editing, focus and submission.
invalidbooleanfalseNoConsumer-owned invalid state.
messagesPartial<GhostTagsInputMessages>—NoLocalized button, announcement and validation text.
modelValuereadonly string[]—NoControlled committed tags.
namestring—NoRepeated native form field name.
readonlybooleanfalseNoPrevents edits while preserving focus and submission.
requiredbooleanfalseNoRequires a committed tag while editable.

Emits ​

None declared.

Models ​

PropEventTypeDescription
modelValueupdate:modelValuereadonly string[]Fresh proposal for the committed tag sequence.

Slots ​

NameDescription
tagFormats tag text while the component retains its remove control.

Slot props: tag ​

NameTypeDescription
valuestringNormalized tag string.

Exposed members ​

NameTypeDescription
elementHTMLInputElement | nullNative text input after mount.
focus() => voidFocuses the native entry.

Parts and data attributes ​

AttributeValueDescription
data-partrootWidget container.
data-partlistList of committed tags.
data-parttagA committed tag.
data-partremoveNative remove button.
data-partinputNative text input.
data-partstatusPersistent polite status region.
data-statedisabledThe field is disabled.
data-statereadonlyThe field is read-only.
data-stateinvalidThe consumer marked the field invalid.

CSS variables ​

None declared.

Accessibility ​

Role: textbox. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_roving_tabindex.

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
EnterCommit a nonempty draft or activate a focused remove button.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
SpaceActivate a focused remove button.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
BackspaceFrom an empty draft focus the last remove button, or remove the focused tag.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
DeleteRemove the focused tag.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
ArrowLeftMove along the tags or back to the entry, reversed in RTL.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
ArrowRightMove along the tags or back to the entry, reversed in RTL.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
HomeFocus the first remove button from a remove button.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
EndFocus the text entry from a remove button.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)
TabEnter through the text entry or leave the widget.TagsInput navigates and removes tags with real focus @cross-browser (@ghostvue/themes)

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardPassedEvery declared key maps to a Chromium browser test that CI runs and requires to pass on every commit.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

tags-input/headless-field ​

Example source

Paste skills Headless

Add comma-separated tags to a labelled headless field.

  • Vue