Skip to content

Holo Tag

The <holo-tag> component (chip) renders a compact label. Set removable to show a dismiss button that emits a holoRemove event — the consumer is responsible for removing the element from the DOM in response.

NeutralSuccessWarningDangerInfo
<holo-tag variant="info">Info</holo-tag>

Removable

<holo-tag variant="neutral" removable>Removable</holo-tag>
<script>
document.querySelector('holo-tag').addEventListener('holoRemove', event => {
event.target.remove();
});
</script>

| Property | Attribute | Description | Type | Default | | ----------- | ----------- | ---------------------------------------------------------- | ----------------------------------------------------------- | ----------- | | variant | variant | The semantic style variant of the tag. | "neutral" \| "success" \| "warning" \| "danger" \| "info" | "neutral" | | removable | removable | If true, renders a dismiss button that emits holoRemove. | boolean | false |

| Slot Name | Description | | --------- | --------------------- | | (default) | The tag’s label text. |

| Event | Description | Type | | ------------ | --------------------------------------------- | ------------------- | | holoRemove | Emitted when the dismiss button is activated. | CustomEvent<void> |