Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
/ react-popover Public archive

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

License

Notifications You must be signed in to change notification settings

terebentina/react-popover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-popover

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

For full docs and demo see http://projects.5mins.me/react-popover/

Installation

npm i @terebentina/react-popover -S

Usage

import React from 'react';
import Popover from '@terebentina/react-popover';

// optional, you can bring your own styles if you want
import '@terebentina/react-popover/lib/styles.css';

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>
    );

License

The MIT License

Copyright (c) 2016 Dan Caragea

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published