Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 656 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 656 Bytes

Build Status Coverage Status

GModal

A modal layer for React 16

Install

npm install @gitpad/gmodal

Usage

import GModal from '@gitpad/gmodal';
import '@gitpad/gmodal/dist/gmodal.css';
// ...
<GModal show>
  <div className="popup">A popup window</div>
</GModal>
// ...

How does it work?

It's powered by React portal in React 16, so it's only compatible with React 16