1.0.5 • Published 5 years ago

react-exit-modal v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

react-exit-modal

A modal that triggers when you exit the window.

NPM JavaScript Style Guide

Install

npm install --save react-exit-modal

Usage

import React, { Component } from 'react'

import { ExitModal, ExitModalAnimations } from 'react-exit-modal'
import 'rodal/lib/rodal.css';

class Example extends Component {
  render () {
    return (
      <ExitModal
        minimumSecondsOnPage={3},
        animation={ExitModalAnimations.ZOOM}
        showMask={true}

        // unique name to describe the modal
        modalName={'landing-page-signup-modal'} 
        modalExpiryHours={12} // 
      >
        <div>Your content</div>
      </ExitModal>
    )
  }
}

License

MIT © stemmlerjs

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago