API reference
@salmonui/layout/avatar
9 exported symbols: 3 functions, 2 interfaces and 4 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/layout/avatar';Functions
AvatarAvatar (.salmon-avatar, data-size, data-shape, data-tone, data-variant). With alt or name it is an image (role="img", aria-label); otherwise it is decorative (…AvatarGroupOverlapping avatars (.salmon-avatar-group, role="group") with a +N overflow avatar.initialsOfInitials of a name: the first letter of the first and of the last word (one letter for a single word), upper-cased for locale.
Interfaces
Types
AvatarShapeAvatarSizeAvatarToneAvatarVariant'soft' (default): a tinted fill with tone text. 'solid': the tone fill with on-color text (neutral: gray with white).