Skip to content

Tag ​

hx-tag is a label for a category or a status. The text is the value or the projected content.

html
<hx-tag value="New" severity="success" />
<hx-tag severity="warn" rounded icon="pi pi-exclamation-triangle">Pending</hx-tag>
InputTypeDefaultDescription
valuestring | number | nullnullThe text (or project content instead).
severity'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'contrast''primary'The colours.
roundedbooleanfalseA pill instead of the small radius.
iconstringIcon font classes, drawn before the text.
  • Accessibility: plain text with no role; the icon is aria-hidden. The colour is not the only carrier of the meaning, the text says it too.

Tokens ​

The look comes from the design tokens --h-tag-* (see Theming); override them in your theme, never the component CSS.

Part of @gravionlabs/helix-ui; all components are listed in the component reference.

Released under the MIT licence.