Tag

Tags are compact elements that represent an input, attribute, or action.

Tag

Filled (default)

Render simple tags with optional close behavior.

Variants

Use variant for visual treatments such as outline, dashed, mark, arrow, and flag. It does not control corner geometry.

Shape

Use shape for rounded, square, or pill geometry. Arrow remains left-round and right-pointed in pill geometry.

Size

Use size to fit compact controls or stronger status labels.

Combinations

Combine color, tag style, round, size, and icons after reviewing each property above.

Color

Color tags using the Sax Design palette or custom values.

Transparent

Use transparent for a lighter, outlined appearance.

Icon

Add a leading icon with the icon prop.

Closable

When closable is enabled, remove the tag from your data in the close event.

Add and remove items

s-tag-group manages tag data directly through v-model. The add action creates a borderless editable tag; Enter or blur confirms, Escape cancels, and each existing tag remains individually removable. Map object arrays with label-key, value-key, and create-item.

API

PROPS

Property
Type
Values
Description
default
Example
More
v-model
Boolean
truefalse
Visibility when closable.
true
text
String
String
Tag label text.
—
editable
Boolean
truefalse
Render a borderless inline editor inside the tag.
false
edit-placeholder
String
String
Placeholder text for the inline tag editor.
''
edit-autofocus
Boolean
truefalse
Focus the editable tag when it is mounted.
false
closable
Boolean, String
truefalse
Show close button.
false
color
String
primarysuccessdangerwarningdarkRGBHEX
Tag color.
—
status
String
primarysuccesswarningwarndangerinfodark
Apply a semantic tag color. A custom color takes priority.
—
type
String
primarysuccesswarningwarndangerinfodark
Compatibility alias for `status`.
—
disabled
Boolean
truefalse
Disable tag click and close interactions.
false
border
Boolean
truefalse
Compatibility alias for `variant="outline"`.
false
transparent
Boolean
truefalse
Transparent background style.
false
variant
String
filledoutlinedashedmarkarrowflag
Select the tag's visual treatment independently from its geometry.
filled
tag-style
String
filledoutlinedashedmarkarrowflag
Compatibility alias for `variant`.
filled
shape
String
roundedsquarepill
Select rounded, square, or pill geometry. Mark and arrow include shape-safe treatments.
rounded
round
Boolean
truefalse
Compatibility alias for `shape="pill"`.
false
size
String
smallmediumlarge
Tag size.
medium
icon
String
Material icon name
Leading icon inside tag.
—
close-icon
String
Material icon name
Close button icon.
sax:close

TagGroup props

Property
Type
Description
default
Example
More
v-model
[]
Bind strings, numbers, or objects directly; handwritten STag children are not required.
[]
label-key
string
Object field used as the visible tag label.
label
value-key
string
Object field used to create a stable rendered key.
value
create-item
(label: string) =>
Convert new text into a domain object; strings are used by default.
—
color
string
Color shared by the tags and add action.
primary
placeholder
string
Placeholder for the temporary editable tag.
''
addable
boolean
Show the borderless add action.
true
closable
boolean
Show each tag's own close action.
true
add-icon
string
Add action icon.
cb:add
remove-icon
string
Close icon used by each tag.
sax:close
add-aria-label
string
Accessible name for the add action.
Add tag

EVENTS

Event
Type
Description
default
Example
More
TagGroup.update:modelValue
[]
Emits the updated editable tag collection.
—
TagGroup.add
Emits the item created by the add action.
—
TagGroup.remove
(item: , index: number)
Emits the removed item and its previous index.
—
update:modelValue
—
Emitted when visibility changes (closable).
—
—
update:text
—
Emitted while editable text changes and when it is confirmed.
—
—
edit-confirm
—
Emitted when Enter or blur confirms the edit.
—
—
edit-cancel
—
Emitted when Escape or an empty blur cancels the edit.
—
—
click
—
Emitted on tag click.
—
—
close
—
Emitted when tag is closed.
—
—
s-remove
—
Emitted when a tag is removed from TagGroup.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied