1.0.16 • Published 2 years ago

@naschpitz/unique-modal v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@naschpitz/unique-modal

A wrapper to react-modal to make it unique through the whole application.

NPM JavaScript Style Guide

Install

npm install --save @naschpitz/unique-modal

Usage

This code will open a modal after 2 seconds and then close it after 8 seconds.

import React from 'react';

import {UniqueModal, UniqueModalController} from '@naschpitz/unique-modal';

const App = () => {
    setTimeout(() => {
        UniqueModalController.open(<div>Modal successfully opened.</div>)
    }, 2000);

    setTimeout(() => {
        UniqueModalController.close();
    }, 10000);

    return <UniqueModal/>
}

export default App

License

MIT © naschpitz

1.0.16

2 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.5

5 years ago

1.0.2

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago