Hi everyone, I'm Fahrettin Rıza Ergin.
I'm a software developer. I'm a student of Computer Programing at University of Atatürk.
I have prepared a notification package for you with my little knowledge of JavaScript.
I wish you to use this package in good days.
npm i vicdun-notification --save
yarn add vicdun-notification
<template>
<bodyRender />
</template>
<script>
import { bodyRender } from 'vicdun-notification'
export default {
components: {
bodyRender
}
}
</script>
<template></template>
<script>
import { bodyRender } from 'vicdun-notification'
export default {
mounted () {
bodyRender()
}
}
</script>
// How to use to change notification content
import { notification } from 'vicdun-notification'
notification({
class: 'mb-4',
message: 'Hi guys',
position: 'right-top', // default: right-top, other positions: left-top, center-top, right-top, center, left-bottom, center-bottom, right-bottom
type: 'default', // default, success, danger, warning, info
style: 'margin-bottom: 1rem; margin-top: 1rem;',
timeout: 3.5 // Default seconds: 3, you can write your own desired seconds. Example: 4.5
})
MIT, see LICENSE.md for details.