Skip to main content
Avatar
@coinbase/cds-web@9.28.0
Avatar is a visual representation of a user, company, or entity.
import { Avatar } from '@coinbase/cds-web/media/Avatar'
Peer dependencies
  • react-dom: ^18.0.0 || ~19.1.2
Related components

Basic Example​

Loading...

Sizes​

Avatar comes in six different sizes. The default size is l.

Loading...

Shapes​

Avatar supports three different shapes: circle, square, and hexagon. The default shape is circle.

Loading...

Selected State​

Avatars can show a selected state with a border indicator.

Loading...

Fallback Image​

If you do not provide a src or if the provided src does not resolve, Avatar will surface a placeholder image.

Loading...

Fallback with Colors​

We've created a palette of identity colors using our CDS spectrum colors. When used as fallback, these colors will generate based on the provided name.

Loading...

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.