shadcn-vue/apps/www/src/content/docs/components/avatar.md
Sadegh Barati d34c620055
chore: lint and enable Volar hybrid mode (#419)
* chore: update deps

* feat: enable Volar hybrid mode

* chore: lint

* chore: build registry
2024-03-20 22:29:42 +03:30

607 B

title description source primitive
Avatar An image element with a fallback for representing the user. apps/www/src/lib/registry/default/ui/avatar https://www.radix-vue.com/components/avatar.html

Installation

npx shadcn-vue@latest add avatar

Usage

<script setup lang="ts">
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
</script>

<template>
  <Avatar>
    <AvatarImage src="https://github.com/radix-vue.png" alt="@radix-vue" />
    <AvatarFallback>CN</AvatarFallback>
  </Avatar>
</template>