react-popopo

2.1.9 • Public • Published

react-popopo

Smart popover component for React. Closes when you click away, no need to reclick the trigger button to close it.

Uses styled-components to make independent styled.

For full docs and demo see https://dapi.github.io/react-popopo/

Originaly based on https://github.com/terebentina/react-popover

Installation

npm i react-popopo -S

or

yarn add react-popopo

Usage

import React from 'react';
import Popover from 'react-popopo';
 
class MyComponent extends React.Component {
 render() {
    return (
      <div>
        If you want to see a nice popover 
        <Popover position="bottom" className="awesome" trigger="click me">
          here I am in all my glory!
        </Popover>
      </div>
    );

Alternatives

License

The MIT License

  • Copyright (c) 2019 Danil Pismenny
  • Copyright (c) 2016 Dan Caragea

Package Sidebar

Install

npm i react-popopo

Weekly Downloads

10,985

Version

2.1.9

License

MIT

Unpacked Size

18.8 kB

Total Files

13

Last publish

Collaborators

  • dapi