Skip to main content
Chip
@coinbase/cds-web@9.17.0
A compact content element for tags, filters, and selections.
import { Chip } from '@coinbase/cds-web/chips/Chip'

Basics

Render a Chip with text. Without onClick, it displays as a static pill. With onClick, it becomes a button. Use disabled to prevent interaction on an otherwise interactive chip.

Loading...

Icons and Images

Loading...

Styling

Active Color

Use active for high-contrast emphasis. When active is true, the Chip inverts the color scheme for everything inside its borders — background, color, icons, and other token-based colors are all resolved against the opposite light/dark palette. Set background and color to control the inactive appearance; those same tokens flip automatically when active.

Loading...

To break from the inverted convention, set activeBackground and/or activeColor while active is true. The Chip paints those tokens directly instead of inverting. Any start, end, or children ReactNodes need explicit color props — they are not updated automatically.

Loading...

Sizes

size accepts xs and s. Defaults to s.

Loading...

Accessibility

When using onClick, provide an accessibilityLabel for screen readers, especially when the label text alone is ambiguous or when the chip has non-text content.

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.