Skip to content

Tag

A small tag used for marking and categorization.

Types

Tag types

DefaultPrimarySuccessWarningDangerInfo

Radius & size

Radius & size

PillXSSmallMediumLargeXL

size supports five tiers: xs / small / medium (default) / large / xl; invalid values fall back to medium with a warning.

Closable

Clicking × dispatches oas-close (cancelable; preventDefault can prevent removal).

Closable tags

ClosableClick × to closeRemoved after close

Chip & clickable

chip: pill radius + compact padding; clickable: the whole tag is clickable, dispatching oas-click on click/Enter/Space.

Chip

Default chipPrimary chipSuccess chipWarning chipClosable chip

Clickable

Click me to dispatch oas-clickClickable chipRegular clickable tagDisabled, not clickable

In chip mode, disabled tags cannot be clicked (no oas-click) nor closed (close button disabled).

Icon tags

The default slot can hold an icon — combining an icon and text forms an icon tag.

Icon tags

FeaturedCompletedFollowScheduled

API

Attributes

AttributeDescriptionTypeDefault
chipChip (pill radius + compact padding)boolean
clickableWhole tag clickable (focusable, dispatches oas-click)boolean
closableClosableboolean
disabledDisabled (cannot be clicked or closed)boolean
roundRoundedboolean
sizeSize: xs / small / medium (default) / large / xl; invalid values fall back to medium with a warningTagSizemedium
typeTypeTagTypedefault

Events

EventDescription
oas-clickWhole-tag click (when clickable), detail contains originalEvent
oas-closeClose, cancelable; preventDefault prevents removal

Slots

NameDescription
default