avataaars
Generates an avatar using the avataaars library by Pablo Stanley.
Signature
avataaars(props: IAvataaars, type: "svg" | "base64"): string
Parameters
Name | Type | Optional | Description |
---|---|---|---|
props | IAvataaars | No | Specifies the avataaars configuration. |
operations | "svg" | "base64" | Yes | Specifies the return type of the function. Can be svg to return an SVG image or base64 to return a Base64-encoded string. |
Return value
Returns the avataaars SVG as a string.