Skip to main content

Displays a predefined icon glyph.

Anchor to color
color
Default: 'base'

Modify the color to be more or less intense.

string

A unique identifier for the element.

Default: 'base'

Adjusts the size of the icon.

Default: 'auto'

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

Default: ''

The type of icon to display.


Anchor to Display icons from the POS catalogDisplay icons from the POS catalog

Display standardized visual symbols using an icon component from the POS icon catalog. This example shows a basic icon with proper sizing and accessibility.

Display icons from the POS catalog

Display standardized visual symbols using an icon component from the POS icon catalog. This example shows a basic icon with proper sizing and accessibility.

Display icons from the POS catalog

<s-icon type="arrow-up" />
<s-icon type="arrow-down" />
<s-icon type="arrow-left" />
<s-icon type="arrow-right" />

  • Choose recognizable icons: Use universally recognized symbols like search, cart, or settings. Avoid ambiguous icons.
  • Match size to context: Use smaller sizes for inline text or secondary actions, base for standard elements, larger sizes for primary actions.
  • Apply tones for meaning: Use critical for destructive actions, warning for cautions, success for confirmations, auto or neutral for general elements.
  • Pair with text for clarity: Consider adding text labels, especially for complex or uncommon actions.
  • Use color for hierarchy: Use subdued for secondary elements, base for standard visibility, strong for emphasis.

Was this page helpful?