Install the component dependency:

Include a React component in your project:

ActionMenu PropTypes

namestringused to generate intials as a fallback image
sizexSmall | small | medium | large | xLargeavatar size (from Avatar.sizes)medium
srcstringURI or path to avatar image

Five avatar sizes are available.

An avatar with a visual image is preferred. In cases where the image is unavailable or loading, initials of the person pictured will be displayed. Always provide the name prop as a fallback.