Skip to content
TrademarkTrademark
Docs
Components

Tag

Updated: October 11, 2026
View on GitHub

Tag is a flexible label component that supports color variants, sizes, and optional icons on either side. Useful for tokens, filters, statuses, and tags.

Badge, Tag or Chip
Badge announces something, usually as a link: the "New" line above a hero. Tag is a static label for a status, category or piece of metadata. Chip is interactive: a choice that can be selected or removed, in filters and in TagInput. 3.0 plans to consolidate them.

Sizes

Tag is available in three sizes for flexibility in dense or prominent layouts.

Variants

Supports all Once UI design tokens including brand, neutral, danger, success, and info.

Inside text

A Tag is a div by default, which is not allowed inside a paragraph. With as="span" every element in it is a span and it flows inline, so it can sit in a sentence. It looks the same.

API reference

Type
Default
scheme
Colour scheme. This was called variant before 2.0.
ColorSchemegradient
neutral
size
Tag size.
lms
m
label
The text.
string""
prefixIcon
Icon before the label.
IconName—
suffixIcon
Icon after the label.
IconName—
children
React.ReactNode—
…and every FlexProps propinherited—
className
string—
style
React.CSSProperties—
Edit this page on GitHub