x
1
2
3
<span role="img" aria-label="Farrah" class="Polaris-Avatar Polaris-Avatar--sizeMedium Polaris-Avatar--shapeRound"> <img src="https://www.redditstatic.com/desktop2x/img/favicon/apple-icon-180x180.png" class="Polaris-Avatar__Image" role="presentation" onerror="this.src=''" /></span>
1
<%= polaris_avatar(customer: customer, name: name, size: size, shape: shape, source: source, initials: initials) %>
Avatar Component
Avatars are used to show a thumbnail representation of an individual or business in the interface.
Param | Description | Input |
---|---|---|
Whether the avatar is for a customer |
|
|
The name of the person |
|
|
Size of avatar |
|
|
Shape of avatar |
|
|
URL of the avatar image which falls back to default if blank |
|
|
Initials of person to display |
|