diff --git a/src/runtime/components/Avatar.vue b/src/runtime/components/Avatar.vue index 726c7e41c9..1df5e3d260 100644 --- a/src/runtime/components/Avatar.vue +++ b/src/runtime/components/Avatar.vue @@ -52,6 +52,18 @@ const { size } = useAvatarGroup(props) const ui = computed(() => avatar({ size: size.value })) + +const sizePx = computed(() => ({ + '3xs': 16, + '2xs': 20, + 'xs': 24, + 'sm': 28, + 'md': 32, + 'lg': 36, + 'xl': 40, + '2xl': 44, + '3xl': 48 +})[props.size || 'md'])