--- title: Badge description: >- Inform users about the status of an object or indicate that an action has been completed. api_name: app-home source_url: html: >- https://shopify.dev/docs/api/app-home/polaris-web-components/titles-and-text/badge md: >- https://shopify.dev/docs/api/app-home/polaris-web-components/titles-and-text/badge.md --- # Badge Inform users about the status of an object or indicate that an action has been completed. ## Properties * color "base" | "strong" Default: 'base' Modify the color to be more or less intense. * icon "" | "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. * size "base" | "large" | "large-100" Default: 'base' Adjusts the size. * tone "info" | "success" | "warning" | "critical" | "auto" | "neutral" | "caution" Default: 'auto' Sets the tone of the Badge, based on the intention of the information being conveyed. ## Slots * children HTMLElement The content of the Badge. ### Examples * #### Code ##### jsx ```jsx <> Fulfilled Draft Active Open On hold Action required ``` ##### html ```html Fulfilled Draft Active Open On hold Action required ``` ## Examples Component examples ### Basic usage Order status badges Demonstrates how different badge tones can visually represent various order fulfillment states, enabling merchants to quickly understand order progress at a glance. Status indicators with icons 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. Within table context Illustrates how badges can be seamlessly integrated into table layouts to provide quick, visually distinct status indicators for individual table rows. Different sizes for emphasis Demonstrates the two available badge sizes for creating visual hierarchy. ### Examples * #### Order status badges ##### Description Demonstrates how different badge tones can visually represent various order fulfillment states, enabling merchants to quickly understand order progress at a glance. ##### jsx ```jsx Fulfilled Partially fulfilled Unfulfilled Cancelled ``` ##### html ```html Fulfilled Partially fulfilled Unfulfilled Cancelled ``` * #### Status indicators with icons ##### Description 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. ##### jsx ```jsx {/* Product status */} Active Scheduled Archived {/* Inventory status */} In stock Low stock Out of stock ``` ##### html ```html Active Scheduled Archived In stock Low stock Out of stock ``` * #### Within table context ##### Description Illustrates how badges can be seamlessly integrated into table layouts to provide quick, visually distinct status indicators for individual table rows. ##### jsx ```jsx Order Fulfillment Payment #1001 Fulfilled Paid ``` ##### html ```html Order Fulfillment Payment #1001 Fulfilled Paid ``` * #### Different sizes for emphasis ##### Description Demonstrates the two available badge sizes for creating visual hierarchy. ##### jsx ```jsx New Attention needed ``` ##### html ```html New Attention needed ```