reactable-popover
v0.2.4
Published
Popovers for React
Downloads
8
Readme
#Popover
This is a simple popover component that gives you an easy to use, and flexible popover menu.
##Install
$ npm install --save reactable-popover
##Usage
<Popover
className="my-class" // Optional: A class name to be added to the popover
toggleButton={<button>Foo</button>} // Required: The element that will toggle the popover. Does not have to be a button.
position="top" // Optional:
leftOffset={10}
topOffset={10}
horizontalJustify="right">
<ul>
<li>Menu Item One</li>
<li>Menu Item Two</li>
</ul>
</Popover>
The content inside the popover component will be rendered as is. You can use it for menus, forms, or just for informational purposes.
##Options