Skip to main content
Avatar
@coinbase/cds-web@8.34.1
Avatar is a visual representation of a user, company, or entity.
Import
import { Avatar } from '@coinbase/cds-web/media/Avatar'
SourceView source codeStorybookView Storybook
Related components
View as Markdown

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.