@zendeskgarden/react-tooltips
TypeScript icon, indicating that this package has built-in type declarations

8.74.3 • Public • Published

@zendeskgarden/react-tooltips npm version

This package includes presentation components and render prop containers relating to Tooltips in the Garden Design System.

Installation

npm install @zendeskgarden/react-tooltips

# Peer Dependencies - Also Required
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';

/**
 * Place a `ThemeProvider` at the root of your React application
 */
<ThemeProvider>
  <Tooltip content="This is a small tooltip">
    <button>Trigger top placement</button>
  </Tooltip>
</ThemeProvider>;

Package Sidebar

Install

npm i @zendeskgarden/react-tooltips

Weekly Downloads

8,327

Version

8.74.3

License

Apache-2.0

Unpacked Size

46.1 kB

Total Files

16

Last publish

Collaborators

  • zendesk-garden