Skip to content

Tag ​

SCATag is a label chip that can be selected, removed and decorated with an avatar or icons. Icon names are typed (IconName); see Icons.

Props ​

PropTypeDefaultDescription
variant'default' | 'underline' | 'breadcrumb' | 'ghost''default'Visual style. breadcrumb adds a leading caret-right.
selectedbooleanfalseSelected look. Two-way via v-model:selected.
disabledbooleanfalseDisabled look; clicks do not toggle selected.
removablebooleanfalseShow a remove (×) icon that emits remove.
errorbooleanfalseError look.
unavailablebooleanfalseMuted look for a value that is no longer available.
iconIconName—Leading icon (use the iconLeft slot for custom content).
iconSizestring'12px'Size of icon.
iconColorstring—Fixed colour of icon.
avatarOmit<SCAAvatarProps, 'size'> & { image?: string }—Small avatar before the label; see Avatar.
overflowCSS overflow'hidden'Overflow of the label.
truncateTooltipbooleanfalseShow the full text in a tooltip when the label is truncated.
tooltipstring—Plain-text tooltip; replaces the truncation tooltip.
asstring | Component'div'Root element or component.

Slots ​

SlotDescription
defaultThe label.
iconLeft / iconRightCustom content (usually SCASvgIcon) before / after the label.

Emits ​

EventPayloadWhen
remove—The remove icon is clicked.
update:selectedbooleanThe tag is clicked (not while disabled).

removable ​

Icons ​

Avatar ​

The avatar property contains the following properties of the SCAAvatar component.

initials emphasis appearance shape

Additional props ​

image

selection ​

error and unavailable ​

Variant: Underline ​

Variant: Breadcrumb ​

Overflow ​

Set css overflow for the label. Default = hidden