Skip to content

jrop/material-ui-dialogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

material-ui-dialogs

Installation

npm install material-ui-dialogs

Use (CommonJS)

const muiDialogs = require('material-ui-dialogs')
async function main() {
	await muiDialogs.alert('My title', 'My message')
	const shouldContinue = await muiDialogs.confirm('Confirm Title', 'Should I continue?')
	const name = await muiDialogs.prompt('Prompt Title', 'What is your name?', 'Default value here')
}
main()

Use (UMD)

<script src="https://unpkg.com/material-ui-dialogs/dist/material-ui-dialogs.js"></script>
<script>
async function main() {
	await MuiDialogs.alert('My title', 'My message')
	const shouldContinue = await MuiDialogs.confirm('Confirm Title', 'Should I continue?')
	const name = await MuiDialogs.prompt('Prompt Title', 'What is your name?', 'Default value here')
}
main()
</script>

License

ISC License (ISC) Copyright (c) 2017, Jonathan Apodaca [email protected]

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published