base-ui-svelte

Avatar

An image element with a fallback for representing the user.

View as Markdown

Sizes

API Reference

Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also accepted unless noted.

Avatar.Root

Extends span HTML attributes.

PropertyTypeDefaultDescription
childrenSnippetContent rendered inside the part.

Avatar.Fallback

Extends span HTML attributes.

PropertyTypeDefaultDescription
delaynumber
childrenSnippetContent rendered inside the part.

Avatar.Image

Also accepts native HTML attributes for the rendered element.

PropertyTypeDefaultDescription
onLoadingStatusChange((status: ImageLoadingStatus) => void) | undefined