@scalar/use-toasts

display toasts in Vue
24,371,992 16,329
Install
npm install @scalar/use-toasts
Latest Version:0.10.6
Vue:3
License:MIT
Last Updated:Oct 28, 2026
Links: GitHub  ·  npm
Maintainer: cameronrohani

Scalar useToasts()

Version Downloads License Discord


Scalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.

  • API References — Interactive API documentation from OpenAPI and AsyncAPI specs.
  • Developer Docs — Write in Markdown/MDX, generate API references, sync with two-way Git.
  • SDK Generator — Type-safe SDKs and CLIs in TypeScript, Python, Go, PHP, Java, and Ruby.
  • API Client — Open-source, offline-first Postman alternative built on OpenAPI.

20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · scalar.com


Installation

npm install @scalar/use-toasts

Usage

// App.vue
<script setup>
import { ScalarToasts } from '@scalar/use-toasts'
</script>
<template>
  <ScalarToasts />
</template>
// ChildComponent.vue
<script setup>
import { useToasts } from '@scalar/use-toasts'

const { toast } = useToasts()

const sendMessage = () => {
  toast('This is a message from the toaster!', 'success', { timeout: 2000 })
}
</script>

Related Packages

vueuse-temporals

Date related composables for atmosphere-ui

1,676 1
vue-toastification

Toasts for Vue made easy!

8,941,430 3,362
vuetify-toast-snackbar

Basic Vue toast service that uses Vuetify Snackbar component.

47,317 127
vuetify-toast-snackbar-ng

Basic Vue toast service that uses Vuetify Snackbar component for Vuetify 2.3+

25,369 22

Version History

Version Released Vue License
0.10.6 ^3.5.44 MIT
0.10.5 ^3.5.40 MIT
0.10.4 ^3.5.30 MIT
0.10.3 ^3.5.30 MIT
0.10.2 ^3.5.30 MIT