@svelte-put/avatar
v4.0.0
Published
Component and utils for handling avatar
Downloads
403
Maintainers
Readme
@svelte-put/avatar
Svelte Avatar
component and utilities for building avatars with builtin supports for Gravatar and UI Avatar.
svelte-put
This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.
Usage & Documentation
See the dedicated documentation page here.
Quick Start
<script>
import Avatar from '@svelte-put/avatar/Avatar.svelte';
let { id, email, firstName, lastName } = $props();
</script>
<Avatar
src="https://your.api/avatar/{id}"
gravatar="{email}"
uiAvatar="{firstName}+{lastName}"
fallback="https://your.api/avatar/default"
/>