# Tooltip **📖 Live documentation:** https://cds.coinbase.com/components/overlay/Tooltip/ A component that displays additional information on hover. ## Import ```tsx import { Tooltip } from '@coinbase/cds-web/overlays/Tooltip' ``` ## Examples ### Placement ```jsx live function TooltipPlacement() { const content = 'This is the tooltip Content'; return ( ); } ``` ### 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. ```jsx live function TooltipPosition() { const content = 'This is the tooltip Content'; return ( Set your default display currency. Set your default display currency. ); } ``` ### 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. ```jsx live function TooltipColorSchemeOptOut() { return ( ); } ``` ### Tooltip in TextInput You can use tooltips within `TextInput` to provide more context. ```jsx live Display name {/* Add padding to ensure 24x24 tooltip tap target for a11y compliance */} } placeholder="Satoshi Nakamoto" /> ``` ### Visibility delay (hover) Use `openDelay` and `closeDelay` to slow down hover activation and reduce accidental opens on dense UI. Keyboard focus still opens immediately. ```jsx live function TooltipVisibilityDelay() { return ( ); } ``` ### Accessibility (A11y) When tooltip content is non-interactive (text only), focus stays on the trigger and the tooltip is rendered in a portal. When tooltip content has **interactive elements** (links, buttons), set **`hasInteractiveContent={true}`** so the tooltip stays in the document flow and keyboard users can tab into the content. This sets `disablePortal`, `disableAutoFocus`, and `disableFocusTrap` appropriately. **Tooltip on an icon (or other non-button anchor):** When using an Icon (or other non-`