Package Exports
- reactjs-popup
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reactjs-popup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Reactjs-popup
built with react Fragment : react 16 Tiny 3KB
Welcome
Reactjs-popup is a simple react popup component with a lot of benefits :
- Built with react fragment thatโs mean no additional wrapper Divs in your code or in the trigger element. ๐ฎ
- Does not inject HTML outside your app root. ๐ฆ
- Function as children pattern to take control over your popup anywhere in your code. ๐ช
- Modal, Tooltip, Menuย : All in one ๐๏ธ
- Full style customization ๐
- Easy to use. ๐
- All these clocks in at around 3 kB zipped. โก๏ธ
Requires React >= 16.0
Demo

TO DO
- Create repository && publish package
- Create reactjs-popup Home page
- Tooltip Support
- Modal Support
- Menu & Nested Menu Support
- Add Live examples
- Animation API
- Toast Support
- suggest a feature here
Installing / Getting started
This package is available in npm repository as reactjs-popup. It will work correctly with all popular bundlers.
npm install reactjs-popup --saveUsing yarn
yarn add reactjs-popup -sInclude the Component
To start using reactjs popup you just need to import the component from the reactjs-popup package.
import React from "react";
import Popup from "reactjs-popup";
export default () => (
<Popup trigger={<button> Trigger</button>} position="right center">
<div>Popup content here !!</div>
</Popup>
);You can find more examples in the reactjs-popup home page
Contributing
Clone Repo
Fork and then clone the repo
git clone git@github.com:your-username/reactjs-popup.gitStart Developing
Install all npm scripts:
npm install
#or
yarn installwe use storybook in this project.before starting, be sure to have some basic knowledge https://storybook.js.org/
Run Test in watch mode
npm run storybookTo make contributing simply you need to create a new story under src/stories directory ( you can copy/past any story to start with ).
In this story, you need to present the new features or the bug fix and don't forget to document your story.
Make Changes. If you want to contribute check out the help wanted issues for things that need fixing.
Before submitting a pull request run npm run test to run the unit-tests.
Licensing
The code in this project is licensed under MIT license.
Show your support!
That's all, thank you for your attention, please star the repo to show your support...
...we are all made of stars star !
