• Stars
    star
    1,763
  • Rank 25,467 (Top 0.6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React Popup Component - Modals,Tooltips and Menus —  All in one

Reactjs-popup

⚠️ Looking for maintainers for reactjs-popup library

Build Status npm bundle size version downloads

MIT License All Contributors PRs Welcome Code of Conduct

Watch on GitHub Star on GitHub Tweet

Reactjs-popup is a simple react popup component that helps you create simple and complex Modals, tooltips, and Menus for your next React App.

You should consider using reactjs-popup for those couple of reasons :

  • Modal, Tooltip, Menu : All in one library 🏋️
  • Very tiny library (3kb) ⚡️
  • Fully accessible
  • Function as children pattern to take control over your popup anywhere in your code 💪
  • Easy to use 🚀
  • TypeScript Support 👌
  • ✅ IE Support. 🚀
  • ✅ Full style customization 👌 (js, CSS, styled-components)
  • Support for controlled Modals & Tooltips
  • Default & Custom Animations

Demo

This is a simple Demo to demonstrate how you can create Modals, Tooltips, Menus using reactjs-popup.

Live Demo

 reactjs popup demo

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 --save

Using yarn

yarn add reactjs-popup

Include 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';
import 'reactjs-popup/dist/index.css';

export default () => (
  <Popup trigger={<button> Trigger</button>} position="right center">
    <div>Popup content here !!</div>
  </Popup>
);

Documentation

Contributing

Clone Repo

Fork and then clone the repo

git clone [email protected]:your-username/reactjs-popup.git

Start Developing

Install all npm scripts:

npm install
or
yarn install

we use storybook to build popup use cases.

To start storybook:

yarn storybook

Run Test in watch mode

yarn test

To make contributing simply you need to create a new story for your use case under stories directory to demonstrate the new features or the bug fix .

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!

Sponsor

if you are interested to Sponsor this library and list your logo in this section, Make sure to contact me.

Show Your Support

Buy Me A Coffee

That's all, thank you for your attention, please Star on GitHub the repo to show your support.

we are all made of stars Star on GitHub

Maintainers


Youssouf EL Azizi

More Repositories

1

awesome-new

A list of `.new` domains to perform online actions in one quick action.
381
star
2

twitter-bot

Node js twitter bot to send auto welcome message for your new followers
JavaScript
256
star
3

parcel-story

Develop your react components with parcel - A simple Alternative to storybook Using parceljs
JavaScript
141
star
4

elazizi.com

My Blog
Astro
22
star
5

reactjs-popup-burger-menu

reactjs-popup burger menu example
JavaScript
19
star
6

spotify-login-animation-with-react-navigation-v5

Spotify login animation with react navigation v5
JavaScript
18
star
7

react-query-auth-token-refresh

Demo code for React Query Auth Token Refresh Article
TypeScript
12
star
8

gatsby-theme-doc

Gatsby theme for your library documentation
JavaScript
11
star
9

react-native-course

React Native Practical Course
JavaScript
11
star
10

story-router

A simple component that's take array of component and return a simple router
JavaScript
9
star
11

react-native-forms-tutorial

A complete React Native Forms Tutorial
TypeScript
9
star
12

react-native-image-picker-example

Java
7
star
13

DEVC_Meetup_React_and_reactNative

JavaScript
5
star
14

Tasker

Tasker Application
TypeScript
4
star
15

react-code-quality-talk

improving react code quality with the right tools https://react-code-quality.elazizi.com/#0
JavaScript
3
star
16

ReactRabatDay1

JavaScript
3
star
17

markdown-docs-starter

A react starter to create docs website with markdown and embed examples
JavaScript
3
star
18

yjose

My Profile Description
2
star
19

my-twitter-bot

My own twitter bot
JavaScript
2
star
20

markdown-here

Google Chrome, Firefox, and Thunderbird extension that lets you write email in Markdown and render it before sending.
JavaScript
1
star
21

github-action-demo

1
star
22

react-zero-to-ninja-day2

react-zero-to-ninja-day2
JavaScript
1
star
23

create-react-modal-with-22-line-of-code

Created with CodeSandbox
HTML
1
star