Skip to main content
SparklineInteractiveHeader (Deprecated)
@coinbase/cds-web-visualization@3.4.0-beta.9
The SparklineInteractiveHeader is used to display chart information that changes over time
Sparkline components are deprecated. Please use LineChart instead.
Import
import { SparklineInteractiveHeader } from '@coinbase/cds-web-visualization'
SourceView source codeStorybookView StorybookFigmaView Figma (internal only)
Peer dependencies
  • framer-motion: ^10.18.0
Related components
View as Markdown
Accessibility tip

When possible combining content that is contextually related benefits screen reader users. The interactive header within Sparkline is one of these moments. Use an accessibilityLabel prop or aria-label to set the entire context of the interactive header. This way screen reader users will hear the asset name, price, and direction all in one sentence.

Default usage

Loading...

Fill

The fill will be added by default

Loading...

Compact

Loading...

Custom Label

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.