Skip to main content

Badge

Inform users about the status of an object or indicate that an action has been completed.

"base" | "strong"
Default: 'base'

Modify the color to be more or less intense.

"" | "replace" | "search" | "split" | "link" | "edit" | "product" | "variant" | "collection" | "select" | "info" | "incomplete" | "complete" | "color" | "money" | "adjust" | "affiliate" | "airplane" | "alert-bubble" | "alert-circle" | "alert-diamond" | "alert-location" | "alert-octagon" | "alert-octagon-filled" | "alert-triangle"

The type of icon to be displayed in the badge.

"base" | "large" | "large-100"
Default: 'base'

Adjusts the size.

"info" | "success" | "warning" | "critical" | "auto" | "neutral" | "caution"
Default: 'auto'

Sets the tone of the Badge, based on the intention of the information being conveyed.

HTMLElement

The content of the Badge.

Examples
<>
<s-badge>Fulfilled</s-badge>
<s-badge tone="info">Draft</s-badge>
<s-badge tone="success">Active</s-badge>
<s-badge tone="caution">Open</s-badge>
<s-badge tone="warning">On hold</s-badge>
<s-badge tone="critical">Action required</s-badge>
</>

Preview

  • Communicating the state of an object
  • Identifying objects that need attention or action
  • Quickly scanning complex lists to find specific object states

  • base: use in tables where many badges are displayed
  • large: use when badge needs to stand out prominently
  • Text truncates automatically, keep labels short to avoid truncation
  • Badges are static indicators, not interactive or dismissible
  • Use critical or warning tones for errors needing immediate attention
  • Use consistent styles and icons for common statuses
  • When using badges in line items, integrate them with the full content group rather than attaching only to the header
  • Don't use badges for merchant-created information. Instead, use a Chip or ClickableChip

Badge labels should:

  • Use 1-2 words maximum: Fulfilled, Partially refunded
  • Always use past tense: Refunded not Refund
Was this page helpful?