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.

Was this section helpful?

HTMLElement

The content of the Badge.

Was this section helpful?

Code

<>
<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>
</>

Component examples

Demonstrates how different badge tones can visually represent various order fulfillment states, enabling merchants to quickly understand order progress at a glance.

Showcases how badges can incorporate both tones and icons to provide contextual information across different merchant scenarios, such as product management, inventory tracking, and payment status.

Illustrates how badges can be seamlessly integrated into table layouts to provide quick, visually distinct status indicators for individual table rows.

Demonstrates the two available badge sizes for creating visual hierarchy.

Was this section helpful?

Order status badges

<s-stack direction="inline" gap="base">
<s-badge tone="success">Fulfilled</s-badge>
<s-badge tone="warning">Partially fulfilled</s-badge>
<s-badge tone="neutral">Unfulfilled</s-badge>
<s-badge tone="critical">Cancelled</s-badge>
</s-stack>