Skip to main content

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.

"base" | "subdued"
Default: 'base'

Modify the color to be more or less intense.

string

ID of a component that should respond to interest (e.g. hover and focus) on this component.

"small" | "base"
Default: 'base'

Adjusts the size of the icon.

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

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

"" | "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.

Was this section helpful?

Code

<s-stack direction="inline" gap="base">
<s-icon type="home" />
<s-icon type="order" />
<s-icon type="product" />
<s-icon type="settings" />
</s-stack>

Component examples

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.

Icons with color-coded tones to convey status and semantic meaning.

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.

Lower contrast icon for secondary actions and supporting information.

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.

Icon associated with interactive elements for enhanced accessibility context.

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.

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.

Was this section helpful?

Basic usage

<s-stack direction="inline" gap="base">
<s-icon type="home" />
<s-icon type="edit" />
<s-icon type="duplicate" />
<s-icon type="save" />
<s-icon type="export" />
</s-stack>