Content
Icon
Icon display. Wraps the Polaris <s-icon> web component.
Usage
<template>
<ShIcon type="arrow-right" size="base" />
<ShIcon type="alert-circle" tone="critical" />
</template>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | PolarisIcon | — | Icon name |
size | 'small' | 'base' | — | Icon size |
tone | 'info' | 'success' | 'warning' | 'critical' | 'auto' | 'neutral' | 'caution' | — | Color tone |
color | 'base' | 'subdued' | — | Icon color |
interestFor | string | — | Target for interest |
Slots
| Slot | Description |
|---|---|
default | Additional content |
Polaris Element
Renders as <s-icon>. See Polaris Icon docs.