Content
Avatar
User avatar. Wraps the Polaris <s-avatar> web component.
Usage
<template>
<ShAvatar initials="JD" size="base" />
<ShAvatar src="https://example.com/avatar.jpg" alt="John Doe" size="large" />
</template>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
initials | string | — | Initials text |
src | string | — | Image source URL |
alt | string | — | Alt text |
size | 'small' | 'small-200' | 'base' | 'large' | 'large-200' | — | Avatar size |
Slots
| Slot | Description |
|---|---|
default | Additional content |
Polaris Element
Renders as <s-avatar>. See Polaris Avatar docs.