mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 06:51:46 +01:00
docs(avatar): improve usage
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user