Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

democracyos-popover

Popover component

popover, component

readme

Popover

Popover component built on top of Tip.

js popover component

Installation

$ npm install popover-component

Features

  • events for composition
  • "auto" positioning
  • fluent API
  • minimal base styling

API

new Popover(content, [title])

Create a new popover with content being either a string, html, or element, and optional title which may contain html or be an element as well.

var Popover = require('popover');
var popover = new Popover('You have mail!!!', 'Mail');
popover.show('#avatar');

View Tip for additional API documentation.

Themes

License

MIT

changelog

1.1.0 / 2014-03-22

  • remove jquery dependency, allow html nodes as content
  • bringing up-to-speed with latest tip updates

1.0.1 / 2013-05-27

  • pin deps
  • add package.json back

1.0.0 / 2013-02-22

  • fix inheritance for IE

0.0.2 / 2012-07-05

  • fix dialog.effect support