Skip to main content
MediaChip
@coinbase/cds-web@8.38.5
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

Basic Usage

MediaChip automatically calculates spacing based on the content you provide (start, children, end).

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

Configurations

MediaChip supports all 6 spacing configurations automatically.

Loading...

Compact Variant

The compact variant reduces spacing for denser layouts.

Recommended component sizes for compact chip
  • Start: 16×16 circular media
  • End: xs size icons
Loading...

Inverted State

Use the inverted prop to emphasize the chip with inverted colors.

Loading...

Interactive

MediaChip can be made interactive by providing an onClick handler.

Loading...

Custom Spacing

You can override the automatic spacing with custom values if needed.

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.