2.0.0 • Published 5 years ago

react-dialog-themarker v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

npm i react-dialog-themarker

Usage:

import Dialog from "react-dialog-themarker";

place Dialog as a sibling to the content it covers

required props:
  1. container - dom element reference to parent of dialog and content
  2. content - dom element reference to content
  3. isOpen - boolean that indicates if dialog should be open
  4. close - function to run for closing the dialog
  5. children - function that follows render prop pattern and return html to be rendered in dialog