diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/avatar/avatar.vue b/packages/@core/ui-kit/shadcn-ui/src/components/avatar/avatar.vue index bd7da746..4f630e19 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/components/avatar/avatar.vue +++ b/packages/@core/ui-kit/shadcn-ui/src/components/avatar/avatar.vue @@ -16,6 +16,7 @@ interface Props extends AvatarFallbackProps, AvatarImageProps, AvatarRootProps { class?: ClassType; dot?: boolean; dotClass?: ClassType; + size?: number; } defineOptions({ @@ -32,10 +33,23 @@ const props = withDefaults(defineProps(), { const text = computed(() => { return props.alt.slice(-2).toUpperCase(); }); + +const rootStyle = computed(() => { + return props.size !== undefined && props.size > 0 + ? { + height: `${props.size}px`, + width: `${props.size}px`, + } + : {}; +});