Skip to main content
AvatarButton
@coinbase/cds-web@8.34.1
A pressable Avatar.
Import
import { AvatarButton } from '@coinbase/cds-web/buttons/AvatarButton'
SourceView source codeStorybookView StorybookFigmaView Figma (internal only)
Related components
View as Markdown

Basic Example

Loading...

Compact

AvatarButton can be compact.

Loading...

Shapes

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

Loading...

Selected State

AvatarButtons can show a selected state with a border indicator.

Loading...

Loading State

AvatarButtons can show a loading state while content is being fetched.

Loading...

Fallback Image

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

Loading...

Fallback with Colors

AvatarButton can use fallback colors with names when no image source is provided.

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.