OptionalbackgroundThe background color of the avatar (e.g., '#FF6600'). If not provided, a color will be deterministically generated from the username.
OptionalfontThe font family for the initials. Defaults to 'Arial, sans-serif'.
OptionalfontThe font size for the initials. If not provided, it will be calculated based on avatar size.
OptionalheightThe height of the avatar in pixels. Defaults to 100.
OptionalinitialsThe maximum number of initials to display. Defaults to 2.
OptionalshapeThe shape of the avatar. Defaults to 'square'.
OptionalsvgAdditional SVG attributes to apply to the root
OptionaltextText to explicitly display on the avatar instead of generated initials.
If provided, initialsLength and username-based initial generation will be ignored.
OptionaltextThe color of the text (initials) on the avatar (e.g., '#FFFFFF'). If not provided, a contrasting color will be chosen based on the background.
OptionalwidthThe width of the avatar in pixels. Defaults to 100.
Defines the options for generating an SVG avatar.