Skip to main content

Icon

The Icon component displays standardized visual symbols from the POS catalog to represent actions, statuses, or categories. Use icons to enhance navigation or provide visual context alongside text.

For interactive icons, wrap them in Button or Clickable components.

Use cases

  • Action clarity: Enhance buttons with visual indicators for actions like save, delete, or navigate.
  • Visual context: Provide context in lists and cards to identify item types or statuses.
  • Navigation cues: Create intuitive elements that help merchants understand destinations.
  • System states: Indicate states like connectivity, battery levels, or processing status.

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

Configure the following properties on the Icon component.

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.

  • 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?