Skip to main content

Tag

The ty-tag component is used for creating small, informative labels that categorize or mark content. These tags are ideal for displaying statuses, categories, or key attributes.

Usage

To use ty-tag, add it around your text or elements:

Live Editor
<ty-flex
  direction="row"
  justify="space-between"
  align="center"
  wrap="wrap"
  gap="10px"
>
  <ty-tag variant="info">Information</ty-tag>
  <ty-tag variant="success">Success</ty-tag>
  <ty-tag variant="error">Error</ty-tag>
  <ty-tag variant="warning">Warning</ty-tag>
</ty-flex>
Result
Loading...

API

Properties

NameDescriptionTypeOptionsDefault
variantDetermines the style of the tagString'neutral', 'info', 'success', 'error', 'warning''neutral'