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

9.0.0 • 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

12,732

Version

9.0.0

License

Apache-2.0

Unpacked Size

34.1 kB

Total Files

24

Last publish

Collaborators

  • zendesk-garden