Display
Tag <pm-tag>
Tag / chip. Static label, removable token, or toggleable filter chip (selectable).
Variants
Set with the variant attribute.
variant="soft"variant="solid"variant="outline"Sizes
Set with the size attribute; controls keep touch-sized targets on phones.
size="sm"size="md"size="lg"Tones
Set tone on the element, or data-tone on any ancestor to tone a whole area.
tone="accent"tone="secondary"tone="neutral"tone="success"tone="warning"tone="danger"tone="info"States
Each state is one attribute.
DisabledAttributes
| Attribute | Type | Default | Description |
|---|---|---|---|
icon-startprop: iconStart | string | — | Registered icon name shown before the content (see registerIcons); a start slot overrides it. |
variant | 'soft' | 'solid' | 'outline' | — | Visual style. |
size | 'sm' | 'md' | 'lg' | — | Size: sm, md or lg (md when not set). |
removable | boolean | false | Shows a remove button; removes the tag unless pm-remove is cancelled. |
selectable | boolean | false | Toggleable filter chip (button with aria-pressed). |
selected | boolean | false | Whether this item is selected. |
disabled | boolean | false | Not interactive (and not submitted, for form controls). |
value | string | — | Value reported in events (defaults to the text). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Events
| Event | React / Svelte prop | Description |
|---|---|---|
pm-remove | onPmRemove | Remove button pressed (call event.preventDefault() to keep the tag). |
pm-change | onPmChange | Filter chip toggled. |
Slots
| Slot | Description |
|---|---|
(default) | Label. |
start | Leading icon or avatar. |
CSS parts
| Part | Description |
|---|---|
::part(base) | The tag. |
Used in templates
Customer 360InboxUser profileCreate accountShopping cartLanding page