diff --git a/src/runtime/components/Avatar.vue b/src/runtime/components/Avatar.vue index c86fbee1..e914d96e 100644 --- a/src/runtime/components/Avatar.vue +++ b/src/runtime/components/Avatar.vue @@ -12,6 +12,10 @@ const avatar = tv({ extend: tv(theme), ...(appConfig.ui?.avatar || {}) }) type AvatarVariants = VariantProps export interface AvatarProps extends Pick { + /** + * The element or component this component should render as. + * @defaultValue 'img' + */ as?: string | object src?: string alt?: string @@ -30,6 +34,8 @@ import { reactivePick } from '@vueuse/core' import { UIcon } from '#components' import { useAvatarGroup } from '#imports' +defineOptions({ inheritAttrs: false }) + const props = defineProps() const fallbackProps = useForwardProps(reactivePick(props, 'delayMs')) @@ -46,7 +52,14 @@ const ui = computed(() => avatar({