Skip to content

gitpadtech/gmodal

Repository files navigation

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