Documentation

ToastMsg latest version 1.0.0


Include this file

<script src="https://cdn.jsdelivr.net/gh/tobiasroeder/toastmsg@1.0.0/js/toastmsg.min.js"></script>

Syntax (Example)

toastMsg({
	color: 'white',
	bgColor: '#3DB6DF',
	fontSize: '20px',
	fontFamily: 'monospace',
	value: 'Hello World',
	position: 'right',
	duration: 2000
});


Parameter

Parameter Type Default
color string #fff
bgColor string #242424
fontSize string 16px
fontFamily string 'Helvetica Neue', 'Helvetica', sans-serif
position string left
duration number 3000


Try it yourself