
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@thinknimble/vue3-alert-alert
Advanced tools
A minimalist alert plugin for VueJS projects.
Install from npm:
npm install vue3-alert-alert
Add the plugin to your Vue project (don't forget to include the css file as well!):
import '@thinknimble/vue3-alert-alert/dist/vue3-alert-alert.css'
import AlertPlugin, { AlertAlert } from '@thinknimble/vue3-alert-alert'
createApp(App).use(AlertPlugin,{}).mount('#app')
Add the <alert-alert>
component to the root of your app (ex: App.vue):
<template>
<div id="app">
<alert-alert />
</div>
</template>
When registering the plugin pass in optional default configuration options - message: '
Use the plugin (options api)
this.$Alert.alert({
type: 'success',
message: `
<h2>Success!</h2>
<p>Your work has been saved.</p>
`,
timeout: 6000,
})
Use the plugin (composition api)
const $Alert = inject('$alert')
$Alert.alert({
type: 'success',
message: `
<h2>Success!</h2>
<p>Your work has been saved.</p>
`,
timeout: 6000,
})
Use the plugin (composition api TS)
import import { $alert } from '@/plugins'
const $Alert = inject($alert)
$Alert.alert({
type: 'success',
message: `
<h2>Success!</h2>
<p>Your work has been saved.</p>
`,
timeout: 6000,
})
Additional Configuration (set some defaults)
let configuration = {
type:'error',
timeout:1000,
message:'<h3>Add a default message </h3>'
}
createApp(App).use(AlertPlugin,configuration).mount('#app')
<template>
<div id="app">
<alert-alert position="lt"/>
</div>
</template>
null
.FAQs
A minimalist alert plugin for VueJS projects.
We found that @thinknimble/vue3-alert-alert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.