shadcn-svelte for Svelte 5 has been released! - Visit the preview docs
An image element with a fallback for representing the user.
<script lang="ts"> import * as Avatar from "$lib/components/ui/avatar/index.js"; </script> <Avatar.Root> <Avatar.Image src="https://github.com/shadcn.png" alt="@shadcn" /> <Avatar.Fallback>CN</Avatar.Fallback> </Avatar.Root>
npx shadcn-svelte@latest add avatar
<script lang="ts"> import * as Avatar from "$lib/components/ui/avatar"; </script> <Avatar.Root> <Avatar.Image src="https://github.com/shadcn.png" alt="@shadcn" /> <Avatar.Fallback>CN</Avatar.Fallback> </Avatar.Root>
On This Page