---
title: Icon
description: >-
Renders a graphic symbol to visually communicate core parts of the product and
available actions. Icons can act as wayfinding tools to help users quickly
understand their location within the interface and common interaction
patterns.
api_name: app-home
source_url:
html: 'https://shopify.dev/docs/api/app-home/polaris-web-components/media/icon'
md: 'https://shopify.dev/docs/api/app-home/polaris-web-components/media/icon.md'
---
# Icon
Renders a graphic symbol to visually communicate core parts of the product and available actions. Icons can act as wayfinding tools to help users quickly understand their location within the interface and common interaction patterns.
## Properties
* color
"base" | "subdued"
Default: 'base'
Modify the color to be more or less intense.
* interestFor
string
ID of a component that should respond to interest (e.g. hover and focus) on this component.
* size
"small" | "base"
Default: 'base'
Adjusts the size of the icon.
* tone
"info" | "success" | "warning" | "critical" | "auto" | "neutral" | "caution"
Default: 'auto'
Sets the tone of the icon, based on the intention of the information being conveyed.
* type
"" | "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"
Specifies the type of icon that will be displayed.
### Examples
* #### Code
##### jsx
```jsx
```
##### html
```html
```
## Examples
Component examples
### Basic usage
Basic usage
Standard icons for common merchant interface actions and navigation. Demonstrates rendering multiple icons in an inline stack, showing different types of icons used for navigation and actions.
With semantic tone
Icons with color-coded tones to convey status and semantic meaning.
Small size
Compact icon sizing for space-constrained interfaces and inline usage. Shows how to render a small-sized icon that takes up minimal space while maintaining clarity.
Subdued color
Lower contrast icon for secondary actions and supporting information.
With id property
Icon with unique identifier for JavaScript targeting and styling. Demonstrates adding a specific ID to an icon, which can be used for JavaScript interactions, CSS styling, or accessibility purposes.
With interest relationship
Icon associated with interactive elements for enhanced accessibility context.
In button components
Icons integrated within button components for clear action identification. Shows how icons can be added to buttons to visually reinforce the button's action, using both positive (add) and negative (delete) tones.
In badge components
Icons combined with badges to enhance status communication and visual hierarchy. Demonstrates using icons with badges to provide visual status indicators, using success and warning tones to convey different states.
### Examples
* #### Basic usage
##### Description
Standard icons for common merchant interface actions and navigation. Demonstrates rendering multiple icons in an inline stack, showing different types of icons used for navigation and actions.
##### jsx
```jsx
```
##### html
```html
```
* #### With semantic tone
##### Description
Icons with color-coded tones to convey status and semantic meaning.
##### jsx
```jsx
```
##### html
```html
```
* #### Small size
##### Description
Compact icon sizing for space-constrained interfaces and inline usage. Shows how to render a small-sized icon that takes up minimal space while maintaining clarity.
##### jsx
```jsx
```
##### html
```html
```
* #### Subdued color
##### Description
Lower contrast icon for secondary actions and supporting information.
##### jsx
```jsx
```
##### html
```html
```
* #### With id property
##### Description
Icon with unique identifier for JavaScript targeting and styling. Demonstrates adding a specific ID to an icon, which can be used for JavaScript interactions, CSS styling, or accessibility purposes.
##### jsx
```jsx
```
##### html
```html
```
* #### With interest relationship
##### Description
Icon associated with interactive elements for enhanced accessibility context.
##### jsx
```jsx
<>
SKU must be unique across all products and cannot be changed after creation
>
```
##### html
```html
SKU must be unique across all products and cannot be changed after creation
```
* #### In button components
##### Description
Icons integrated within button components for clear action identification. Shows how icons can be added to buttons to visually reinforce the button's action, using both positive (add) and negative (delete) tones.
##### jsx
```jsx
Add product
Delete
```
##### html
```html
Add product
Delete
```
* #### In badge components
##### Description
Icons combined with badges to enhance status communication and visual hierarchy. Demonstrates using icons with badges to provide visual status indicators, using success and warning tones to convey different states.
##### jsx
```jsx
Active
Pending
```
##### html
```html
Active
Pending
```