Spelte

Open Github

Fallback Avatar

A unique gradient avatar generated from a name string.

xxtomm
max
hugh
diana
solo

Installation

pnpm dlx shadcn-svelte@latest add https://spelte.dev/r/fallback-avatar.json

Examples

Sizes

Usage

<script>
	import FallbackAvatar from '$registry/spelte/fallback-avatar.svelte';
</script>
 
<FallbackAvatar name="Ada Lovelace" size={48} />

Props

PropTypeDefaultDescription
namestring—String used to derive unique colors and blob positions
sizenumber32Pixel size of the avatar
animatedbooleantrueBlobs orbit and breathe on hover
classstring—Additional CSS classes