Skip to main content
Tooltip
@coinbase/cds-web@8.34.1
A component that displays additional information on hover.
Import
import { Tooltip } from '@coinbase/cds-web/overlays/Tooltip'
SourceView source codeStorybookView StorybookFigmaView Figma (internal only)
Related components
View as Markdown
Default color inversion

Tooltip surfaces automatically flip the active color scheme (via invertColorScheme, which defaults to true) so the overlay background has high contrast against the surrounding UI. Set invertColorScheme={false} on either the web or mobile Tooltip if you need the content to inherit the current theme and ensure your custom colors still meet contrast guidelines.

Placement

Loading...

Positioning

Sometimes you may want to use a tooltip with an absolute positioned element.

To ensure the tooltip is properly aligned, you should instead set the position prop on the tooltip.

Loading...

Opt out of color inversion

Tooltips invert the current color scheme by default. Pass invertColorScheme={false} to keep the tooltip aligned with the surrounding surface and supply your preferred elevation/background tokens.

Loading...

Tooltip in TextInput

You can use tooltips within TextInput to provide more context.

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.