@npmcorp/pui-react-overlay-trigger

A React component for displaying a tooltip or popover on user action

Usage no npm install needed!

<script type="module">
  import npmcorpPuiReactOverlayTrigger from 'https://cdn.skypack.dev/@npmcorp/pui-react-overlay-trigger';
</script>

README

pui-react-overlay-trigger

A React component for displaying a tooltip or popover on user action

Pivotal UI React (GitHub, npm) is a collection of React components for rapidly building and prototyping UIs.

This component requires React v0.13

See the Pivotal UI Styleguide for fully rendered examples.

Components

OverlayTrigger

Display a tooltip or popover on a specified user action

var OverlayTrigger = require('

#### Properties

- `placement`
  - `String`: One of `left`, `right` (default), `top`, or `bottom`--determines where the place the overlay relative to the trigger

- `trigger`
  - `String, Array<String>`: One of `hover` (default), `focus` (default), or `click`--defines which user actions trigger the overlay

- `overlay`
  - `Element`: The HTML for the overlay


*****************************************

(c) Copyright 2015 Pivotal Software, Inc. All Rights Reserved.