Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Tag

A small uppercase pill for a category or filter, with an optional button to remove it.

ComponentsTag
datahybrid
<arc-tag>

Overview

Tag is a small pill-shaped label for a category, a filter or a piece of metadata. Its text is uppercase in the label font with wide letter spacing. There are seven variants: `default` (neutral border and muted text), `primary` and `secondary` (accent tints), and the status colors `success` (green), `warning` (yellow), `error` (red) and `info` (blue). On hover a tag glows in its variant's color, except `default` and `info`, which glow in the accent color. When no variant fits, `color` takes an RGB triplet such as `"77, 126, 247"` and uses it for the border, text, background tint and hover glow. Use it for category colors that come from your data. `removable` adds a close button after the label. Clicking it fires `arc-remove`, and your code removes the tag or clears the filter. The close button has its own hover state and focus ring.

Guidelines

Do

  • Use `primary` or `secondary` to group related categories
  • Use `color` when category colors come from data, such as project or label colors
  • Set `removable` on a filter the reader applied and can clear
  • Keep labels to one to three words. Long uppercase labels are hard to read
  • Listen for `arc-remove` once on the parent container, not on every tag
  • Lay a set of tags out in a wrapping flex row with a small gap

Don't

  • Don't use Tag for long text
  • Don't use the close button for destructive actions such as deleting a resource. It should only remove the tag
  • Don't use more than two variants in one group of tags
  • Don't use Tag as a button. It has no button role or button focus handling

Features

  • The default slot takes text, icons or both
  • A disabled tag is 50% opacity and ignores the pointer, close button included

Preview

Default Primary Secondary Success Warning Error Custom Removable

Usage

Its events and state need JavaScript, so use the Web Component or a framework wrapper for those.

<arc-tag>Default</arc-tag>
<arc-tag variant="primary">Primary</arc-tag>
<arc-tag variant="secondary">Secondary</arc-tag>
<arc-tag removable>Removable</arc-tag>

<!-- Custom color from data -->
<arc-tag color="255, 120, 50">Custom</arc-tag>
<arc-tag color="120, 200, 80">Green</arc-tag>

API

colorstring''
Custom color as an RGB triplet (e.g. "77, 126, 247"). When set, overrides the variant colors for border, text, background, and hover glow. Useful for data-driven category colors.
variant'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info''default'
Color variant. Default is neutral. Primary and secondary use accent tints. Success, warning, error and info provide semantic status colors.
size'sm' | 'md' | 'lg''md'
Controls the tag size.
removablebooleanfalse
When true, shows a close button that fires arc-remove when clicked.
disabledbooleanfalse
Disables the tag, reducing opacity to 40% and blocking pointer events including the remove button.

Events

arc-remove
Fired when the remove button on a removable tag is clicked

See also