@pirxpilot/popover

2.0.1 • Public • Published

Popover

Popover component built on top of Tip.

js popover component

Installation

$ npm install @pirxpilot/popover

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

Readme

Keywords

Package Sidebar

Install

npm i @pirxpilot/popover

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

3.79 kB

Total Files

4

Last publish

Collaborators

  • pirxpilot