Foundations

Avatar

A picture of a person, with initials while it loads or when there is none.

npx shadcn-svelte@latest add http://localhost:5173/r/avatar.json

Image and fallback

Initials (or an icon) show until the image has loaded, then the image fades in over 250ms. A broken image keeps the fallback.

light
AN
JK
SL
dark
AN
JK
SL

Sizes

light
sm
JK
OW
OW
default
JK
OW
OW
lg
JK
OW
OW
dark
sm
JK
OW
OW
default
JK
OW
OW
lg
JK
OW
OW

Badge

A status dot on the edge, cut out from the background by a ring. Color it with a class.

light
AN
PZ
OW
dark
AN
PZ
OW

Group

Overlapping avatars, each separated by a background ring, with a count for the rest.

light
AN
JK
OW
+5
AN
JK
OW
PZ
dark
AN
JK
OW
+5
AN
JK
OW
PZ

With a name

light
AN
JK
Jan Kowalski [email protected]
dark
AN
JK
Jan Kowalski [email protected]