Skip to components
DEVELOPER REFERENCE · v4.0.0

Avatar API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Avatar10 props0 callbacks0 methods

Props10

Avatar props
NameTypeDescription
ariaLabelOptionalstring | undefinedAccessible name announced by assistive technology.
classNameOptionalstring | undefinedAdditional CSS classes applied to the component root.
indexOptionalnumber | undefinedIndex used to identify or style the item.
initialsOptionalstring | undefinedFallback initials displayed when no avatar image is available.
keyOptionalstring | number | undefinedStable identity used when rendering this item.
labelOptionalstring | undefinedLabel content or accessible name for the component, as rendered by this control.
rectangularOptionalboolean | undefinedUses a rectangular avatar instead of the circular presentation.
sizeOptionalnumber | undefinedVisual size of this component; numeric icon/avatar sizes are in pixels, while controls use the declared named sizes.
styleOptional
Record<string, string | number | null | undefined> | undefinedInspect type
Inline styles or style configuration applied to this component; expand the type for supported entries.
valueOptionalunknownValue to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted.

Events and callbacks0

No component-specific events or callbacks.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.