@zendeskgarden/react-tooltips
This package includes presentation components and render prop containers relating to Tooltips
in the Garden Design System.
Installation
npm install @zendeskgarden/react-tooltips
npm install react react-dom styled-components @zendeskgarden/react-theming
Usage
TooltipElement
Standard tooltip usages.
import { ThemingProvider } from '@zendeskgarden/react-theming';
import { Tooltip } from '@zendeskgarden/react-tooltips';
<ThemeProvider>
<Tooltip content="This is a small tooltip">
<button>Trigger top placement</button>
</Tooltip>
</ThemeProvider>;