Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 739 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 739 Bytes

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