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 even pass a Next.js image component.
API Reference
Avatar
Property | Type | Description |
---|---|---|
src | string | |
srcSet | string | |
name * | string | |
filter | string | |
base | string | |
background | string | |
size | string | |
font | string | |
border | string | |
rounded | string | |
shadow | string | |
classes | string | |
imageBase | string | |
imageClasses | string | |
fallbackBase | string | |
fallbackClasses | string | |
children | ReactNode | |