@fidelisppm/popover
A React component which displays a popover when an element is clicked.
$ cnpm install @fidelisppm/popover 
SYNC missed versions from official npm registry.

Popover

A React component which displays a popover when a target element is clicked.

Props

trigger (object):
Required. A DOM element which will display the popover when clicked.

content (object):
Required. A DOM element which will be rendered inside the popover.

position (string):
Optional. The position relative to the trigger where the popover will be displayed. Acceptable values are top, bottom, left, and right. Defaults to left.

Usage

<Popover
	trigger={document.getElementById('example-element')}
	content={<span>I am popover text!</span>}
	position="top"
/>

Current Tags

  • 1.0.4                                ...           latest (9 months ago)

5 Versions

  • 1.0.4                                ...           9 months ago
  • 1.0.3                                ...           9 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 5
Last Month 0
Dependencies (2)
Dev Dependencies (15)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |