Avatar — ui.avatar
Bild oder Initialen einer Person mit optionalem Status. 1.4.0 (opt-in): shape figure = freigestellte Figur, die ihren Behaelter fuellt. 1.4.2: Initialen und Farbton in UTF-8 (Namen mit Umlaut am Wortanfang hatten keine Initiale). 1.5.0 (25.10.2026): Toenung der Initialen-Avatare ueber Theme-Tokens a
Beispiele
Initialen, online
Klein, abwesend
Groß, offline
Extragroß (xl, 56 px), online, gerundet (1.6.0)
Unsicheres src → Initialen-Fallback
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
name * | string | — |
src | string | "" |
size | string: sm | md | lg | xl | 2xl | "md" |
shape | string: circle | rounded | figure | "circle" |
focus | string: center | top | "center" |
status | string: none | online | away | offline | "none" |
ring | string: none | brand | "none" |
icon | string | "" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--avatar-size | var(--size-10) |
--avatar-background | var(--color-action-secondary) |
--avatar-color | var(--color-text-muted) |
--avatar-radius | var(--shape-pill) |
Genutzte Design-Tokens
avatar.tone-strength avatar.tone-text border.emphasis color.accent color.action.secondary color.border.strong color.series.1 color.series.2 color.series.3 color.series.4 color.series.5 color.series.6 color.series.7 color.series.8 color.status.success color.status.warning color.surface.default color.text.default color.text.muted font.family.default gradient.brand radius.control radius.full size.10 size.12 size.14 size.16 size.8 text.4xl weight.semibold