Skip to content

paolomolo/reactjs-popup-lib

Repository files navigation

Reactjs-popup without inline-css for modals

Reactjs-popup is a simple react popup component.

Removed the css styling for modals to add own styling later

Installing

npm i paolomolo/reactjs-popup-lib#master -S

Requires React >= 16.0

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

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

You can find more examples in the reactjs-popup home page

About

Reactjs-popup without inline-css for modals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published