Skip to content

Tag

stable

Uppercase label chip with optional click handler

Data DisplayInteractive/Storybook ↗
import { Tag } from "@nodus/design-system"
Loading demo…

Props

variant
Type "default" | "outlined"Default "default"

Tag style

onClick
Type () => voidDefault

Click handler — makes tag interactive when provided

Accessibility

  • Renders as a <span>. When onClick is provided, add role="button" and tabIndex={0} so keyboard users can activate it.
  • Interactive tags should also handle keydown for Enter and Space keys to match button behavior.
  • Tag text is uppercase via CSS — avoid uppercase abbreviations that may be mispronounced by screen readers.
Metadatadefaultoutlinedsemantictypebordersurface
MobileTouch Target

Dismissible tags need a 44px tap target on the × button. Use the size='md' variant or apply px-3 py-2 for adequate mobile tap area.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?