\r\n \r\n Notifications can include icons to improve the user experience and to construct a more pleasant and intuitive notification. To make this, use the icon
property. A practical example would be: icon: 'chat'
\r\n\r\n \r\n Vuesax uses the Google Material Icons font library by default. For a list of all available icons, visit the official Material Icons page.
\r\n FontAwesome and other fonts library are supported. Simply use the icon-pack with fa or fas. You still need to include the Font Awesome icons in your project.
\r\n \r\n\r\n \r\n \r\n Icon Mail\r\n\r\n Icon check_box\r\n\r\n Icon favorite\r\n\r\n Icon error\r\n\r\n Icon chat\r\n\r\n Icon Random Color\r\n
\r\n\r\n \r\n<template>\r\n <div class="demo-alignment">\r\n\r\n <vs-button color="primary" type="flat"\r\n @click="$vs.notify({\r\n title:'Icon mail',\r\n text:'Lorem ipsum dolor sit amet, consectetur',\r\n color:'primary',\r\n iconPack: 'feather',\r\n icon:'icon-mail'})">Icon Mail</vs-button>\r\n\r\n <vs-button color="success" type="flat"\r\n @click="$vs.notify({\r\n title:'Icon mail',\r\n text:'Lorem ipsum dolor sit amet, consectetur',\r\n color:'success',\r\n iconPack: 'feather',\r\n icon:'icon-check'})">Icon check_box</vs-button>\r\n\r\n <vs-button color="danger" type="flat"\r\n @click="$vs.notify({\r\n title:'Icon mail',\r\n text:'Lorem ipsum dolor sit amet, consectetur',\r\n color:'danger',\r\n iconPack: 'feather',\r\n icon:'icon-heart'})">Icon favorite</vs-button>\r\n\r\n <vs-button color="warning" type="flat"\r\n @click="$vs.notify({\r\n title:'Icon mail',\r\n text:'Lorem ipsum dolor sit amet, consectetur',\r\n color:'warning',\r\n iconPack: 'feather',\r\n icon:'icon-alert-circle'})">Icon error</vs-button>\r\n\r\n <vs-button color="dark" type="flat"\r\n @click="$vs.notify({\r\n title:'Icon mail',\r\n text:'Lorem ipsum dolor sit amet, consectetur',\r\n color:'dark',\r\n iconPack: 'feather',\r\n icon:'icon-message-square'})">Icon chat</vs-button>\r\n\r\n <vs-button @click="randomIcon()" color="success" type="gradient">Icon Random Color</vs-button>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n methods: {\r\n randomIcon() {\r\n function getRandomInt(min, max) {\r\n return Math.floor(Math.random() * (max - min)) + min;\r\n }\r\n let color = `rgb(${getRandomInt(0,255)},${getRandomInt(0,255)},${getRandomInt(0,255)})`\r\n\r\n this.$vs.notify({ title: 'Icon mail', text: 'Lorem ipsum dolor sit amet, consectetur', color: color, icon: 'verified_user' })\r\n }\r\n }\r\n}\r\n</script>\r\n \r\n\r\n \r\n