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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user