Give Avatar initials, person-mark, and load-error fallbacks so missing photos still look like the design-system atom.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-08-26 13:18:33 -06:00
co-authored by Cursor
parent 95781452bd
commit 4c4cf99572
6 changed files with 395 additions and 29 deletions
+14
View File
@@ -245,3 +245,17 @@ export const PROPORTION_BAR_VARIANT_OPTIONS = [
] as const;
export type ProportionBarVariantValue =
(typeof PROPORTION_BAR_VARIANT_OPTIONS)[number];
export const AVATAR_SIZE_OPTIONS = [
"small",
"medium",
"large",
"xlarge",
] as const;
export type AvatarSizeValue = (typeof AVATAR_SIZE_OPTIONS)[number];
export const AVATAR_SHAPE_OPTIONS = ["circle", "rounded-square"] as const;
export type AvatarShapeValue = (typeof AVATAR_SHAPE_OPTIONS)[number];
export const AVATAR_VARIANT_OPTIONS = ["filled", "outlined"] as const;
export type AvatarVariantValue = (typeof AVATAR_VARIANT_OPTIONS)[number];