feat(Avatar): use NuxtImg component when available

Resolves nuxt/ui#2078
This commit is contained in:
Benjamin Canac
2024-11-07 13:01:51 +01:00
parent 0454124b3c
commit f1a14dd87c
3 changed files with 20 additions and 5 deletions

View File

@@ -11,6 +11,10 @@ links:
## Usage
::tip
The Avatar uses the `NuxtImg` component when `@nuxt/image` is installed, falling back to `img` otherwise.
::
### Src
Use the `src` prop to set the image URL. You can pass any property from HTML `<img>` element such as `alt`, `loading`, etc.