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