npm.io
1.0.3 • Published 6 years ago

@ptadmin/generic-modal-dialog

Licence
ISC
Version
1.0.3
Deps
0
Size
13 kB
Vulns
0
Weekly
0

GenericModalDialog

GenericModalDialog is a component that renders a basic MaterialUI modal dialog.

Usage

import GenericModalDialog from '@ptadmin/generic-modal-dialog';

<GenericModalDialog />

Props

isOpen (boolean): Flag that determines whether the dialog is displayed or not
dismissible (boolean): Flag that determines whether the dialog can be closed by clicking outside of it
title (string): Title rendered by the dialog
text (string): Main text content of the dialog
actions (array): List of actions available in the dialog. Each item will render a button