Installation
- CLI
- Manual
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
An image element with a fallback for representing the user.
npx shadcn-svelte@next add avatar
Install bits-ui
npm install bits-ui -D
Copy component code
<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>