tag-group

Tag Group

Tags the shopper moves through with the arrow keys, such as active filters to remove or options to pick; selection and removal are both optional.

Parts

PartFileDoes
TagGroupTagGroup.vueGroups tags the user moves through with the arrow keys, and can select or remove.
TagGroupItemTagGroupItem.vueOne tag: its text and, when removable, a delete button.
TagGroupItemDeleteTagGroupItemDelete.vueLets the user remove its tag; the group emits `remove`.
TagGroupItemTextTagGroupItemText.vueShows the text of one tag.

Anatomy

<TagGroup>
  <TagGroupItem>
    <TagGroupItemText />
    <TagGroupItemDelete />
  </TagGroupItem>
</TagGroup>

Styling

All of Tag Group’s styles live in tag-group.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue
@vueuse/core
reka-ui

API reference

TagGroup.vue

Groups tags the user moves through with the arrow keys, and can select or remove. Renders a <div>.

Props 12

PropTypeDefault
modelValueAcceptableValue | AcceptableValue[]—
defaultValueAcceptableValue | AcceptableValue[]—
selectionModeTagGroupSelectionMode'none'
disallowEmptySelectionbooleanfalse
escapeKeyBehavior'none' | 'clearSelection''clearSelection'
disabledbooleanfalse
dirDirection—
loopbooleantrue
bystring | ((a: AcceptableValue, b: AcceptableValue) => boolean)—
asChildbooleanfalse
asAsTag | Component'div'
classClassValue—

Events 2

EventPayload
update:modelValuevalue: AcceptableValue | AcceptableValue[] | undefined
removevalues: AcceptableValue[]

Slots 1

SlotSlot props
default{ modelValue: AcceptableValue | AcceptableValue[] | undefined; }

Data attributes 2

Data attributeValues
data-disabled—
data-empty—

Recipe tag-group 1 group

TagGroupItem.vue

TagGroupItemDelete.vue

TagGroupItemText.vue
Tag Group
State