docs(avatar): improve usage

This commit is contained in:
Benjamin Canac
2024-12-10 14:42:27 +01:00
parent e73f38d1d1
commit db9ac5778f

View File

@@ -11,18 +11,16 @@ links:
## Usage
::tip
The Avatar uses the `NuxtImg` component when [`@nuxt/image`](https://github.com/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.
::note
You can pass any property from the HTML `<img>` element such as `alt`, `loading`, etc.
::
### Src
Use the `src` prop to set the image URL.
::note
You can pass any property from the HTML `<img>` element such as `alt`, `loading`, etc.
::
::component-code
---
props: