Skip to main content
MediaChip
@coinbase/cds-web@9.28.0
A chip with spacing optimized for displaying circular asset media and CTA accessories. Automatically adjusts padding based on content configuration.
import { MediaChip } from '@coinbase/cds-web/chips/MediaChip'
Related components

MediaChip automatically adjusts spacing based on the combination of start, children, and end content.

Basics​

Recommended component sizes for regular-sized chips
  • Start: 24×24 circular media
  • End: xs size icons
Loading...

Layout Configurations​

MediaChip supports all six content combinations automatically.

Loading...

Styling​

Sizes​

size accepts xs and s. Defaults to s.

Recommended media dimensions per size
  • s (default): 24×24 circular media, xs size icons
  • xs: 16×16 circular media, xs size icons
Loading...

Active​

Use active to emphasize the chip with high-contrast colors.

Loading...

Custom spacing​

Override automatic spacing with custom values when needed.

Loading...

Interactivity​

Provide onClick to make MediaChip interactive. Use disabled to prevent interaction.

Loading...

Accessibility​

When onClick is provided and visible text is unclear (or absent), provide an accessibilityLabel.

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.