docs(avatar): update

This commit is contained in:
Benjamin Canac
2024-11-07 14:56:00 +01:00
parent c9adf333be
commit 1c01db4d20

View File

@@ -1,5 +1,5 @@
---
description: An image element with fallback.
description: An img element with fallback and Nuxt Image support.
links:
- label: Avatar
icon: i-custom-radix-vue
@@ -12,7 +12,7 @@ links:
## Usage
::tip
The Avatar uses the `NuxtImg` component when `@nuxt/image` is installed, falling back to `img` otherwise.
The Avatar uses the `NuxtImg` component when [`@nuxt/image`](https://github.com/nuxt/image) is installed, falling back to `img` otherwise.
::
### Src
@@ -40,6 +40,10 @@ props:
---
::
::note
The `<img>` element's `width` and `height` are automatically set based on the `size` prop.
::
### Icon
Use the `icon` prop to display a fallback [Icon](/components/icon).