Skip to content

Scheduling infrastructure for absolutely everyone.

Add sizePropsBySize to avatarPrimitive root (#6666)

Alex van Andel6ccc19985fee
diff --git a/packages/ui/components/avatar/Avatar.tsx b/packages/ui/components/avatar/Avatar.tsx
index b72913ae7e9..68df3f55a0f 100644
--- a/packages/ui/components/avatar/Avatar.tsx
+++ b/packages/ui/components/avatar/Avatar.tsx
@@ -36,6 +36,7 @@ export function Avatar(props: AvatarProps) {
let avatar = (
<AvatarPrimitive.Root
className={classNames(
+ sizesPropsBySize[size],
"dark:bg-darkgray-300 item-center relative inline-flex aspect-square justify-center overflow-hidden rounded-full",
props.className
)}>