AnyLumino
API referenceastryxdata

Avatar

Render an Astryx avatar.

Astryx Props

JSON-safe Avatar props forwarded to Astryx.

Supported Astryx props include:

  • src (string): Primary image source URL.
  • fallbackSrc (string): Fallback image when primary fails.
  • name (string): User name for initials and alt text.
  • alt (string): Alt text (falls back to name).
  • size (AvatarSize): Avatar size (named or numeric pixel value).
  • status (ReactNode): Corner content for status indicators.

Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.

See Astryx component docs: https://astryx.atmeta.com/components/Avatar.

Functions

constructor__init__(name, *, src=None, fallback_src=None, alt=None, size=None, **props) -> None
paramnamestr

Astryx component option.

paramsrcstr | None
= None

Primary image URL.

paramfallback_srcstr | None
= None

Fallback image URL.

paramaltstr | None
= None

Alternative image text.

paramsizestr | int | None
= None

Named or pixel avatar size.

parampropsAny
= {}

Returns

None

On this page