1. components
  2. avatar
  3. svelte

Avatar

An image with a fallback for representing the user.

s

Fallback

When src or srcSet are missing or fail to load, a fallback will be displayed. By default this will show the user initials, based on the name. Optionally you can suppy your own content using the default children. This can be used to display icons or implement a custom image using @sveltejs/enhanced-img.

JD