Avatars
Svelte ComponentDisplay user avatars with an image or initials.
Import
Package
Source
Docs
Examples
Usage
Image
Display an image source cropped into the shape.
<Avatar src="https://i.pravatar.cc/" />
Initials
Display up to two text characters. (ex: Jane Doe would be JD)
<Avatar initials="JD" />
Using Filters
See Filters to learn how to import and configure the filters action and SVG filter components.
import { filter, Apollo, /* ... */ } from '@skeletonlabs/skeleton';
Import the filter action reference using action
and set actionParams
to the desired filter id.
<Avatar src="https://i.pravatar.cc/" action={filter} actionParams="Apollo" />