mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 00:15:05 +01:00
feat(Avatar): use NuxtImg component when available
Resolves nuxt/ui#2078
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user