--- title: "Tooltip" slug: tooltip category: component type: examples version: 20.0.0 tokens: 1116 source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-tooltip--examples.txt --- # Tooltip ## Default ```tsx Show tooltip This is the tooltip content ``` ## Custom Trigger ```tsx This is the tooltip content ``` ## Controlled ```tsx { const [isOpen, setIsOpen] = useState(false); function toggleTooltip() { setIsOpen((isOpen) => !isOpen); } return ( <> This is the tooltip content ); } ``` ## Grid ```tsx <> Top Left Top Left tooltip Top Top tooltip Top Right Top Right tooltip Middle Left Middle Left tooltip
Middle Right Middle Right tooltip Bottom Left Bottom Left tooltip Bottom Bottom tooltip Bottom Right Bottom Right tooltip ``` ## ZIndex ```tsx <> Default Z-axis order: Back Front
Custom Z-axis order: Front Back ``` ## Accessibility Tooltip ```tsx Some additional context. ```