Avatar

A user image with initials fallback and a generic glyph when signed out.

Available in
  • Angular: available
  • Vue: available
  • React: available
  • React Native: available

Usage

APSLKM
ACDSIO
AP
Ada Park
Product design

Import

ts
import {
  SoneAvatarComponent,
  SoneAvatarFallbackDirective,
  SoneAvatarImageDirective,
} from "@surface-one/angular/avatar";

API reference

SoneAvatarComponentComponent

Selector
sone-avatar
Inputs
NameType Default
sizeAvatarSize"default"
shape

`square`: a rounded square (a team, a workspace, an app) instead of a circle.

AvatarShape"circle"

SoneAvatarFallbackDirectiveDirective

Selector
[soneAvatarFallback]

SoneAvatarImageDirectiveDirective

Selector
img[soneAvatarImage]