Docs
Avatar

Avatar

An image element with a fallback for representing the user.

CN

Installation

	npx shadcn-svelte add avatar
	npx shadcn-svelte add avatar

Usage

	<script lang="ts">
  import { Avatar, AvatarFallback, AvatarImage } from "$components/ui/avatar";
</script>
	<script lang="ts">
  import { Avatar, AvatarFallback, AvatarImage } from "$components/ui/avatar";
</script>
	<Avatar>
  <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
  <AvatarFallback>CN</AvatarFallback>
</Avatar>
	<Avatar>
  <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
  <AvatarFallback>CN</AvatarFallback>
</Avatar>