Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@scalar/use-toasts

scalar56.2kMIT0.7.8TypeScript support: included

display toasts in Vue

composable, notifcation, toast, vue, vue3

readme

Scalar useToasts()

Version Downloads License Discord

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>

changelog

@scalar/use-toasts

0.7.8

Patch Changes

  • 66bc910: chore: update build process

0.7.7

Patch Changes

  • 0c34a18: chore: updated vue package to 3.5

0.7.6

Patch Changes

  • ad89ca3: fix: autprefixer warnings

0.7.5

Patch Changes

  • db92a85: fix(use-toasts): set parent class for scalar toasts

0.7.4

Patch Changes

  • 94e68ab: chore: upgrade typescript to 5.5

0.7.3

Patch Changes

  • b981770: chore: introduce the new @scalar/api-reference-editor

0.7.2

Patch Changes

  • a2cb3c3: Migrate away from unintended peer dependencies

0.7.1

Patch Changes

  • e0fc110: chore: patch bump all package

0.7.0

Minor Changes

  • 7f8ef74: chore: remove aliasing

Patch Changes

  • b38c7ed: Update build configs to a standardized format
  • 6fbb57e: feat: release all the packages

0.6.7

Patch Changes

  • cc5402c: feat: support for descriptions

0.6.6

Patch Changes

  • 670156e: chore: bump packages

0.6.5

Patch Changes

  • 2e7b074: feat: clean up toast styles and colors

0.6.4

Patch Changes

  • 45dc04b: fix: can’t release packages

0.6.3

Patch Changes

  • 05e2e27: chore: add provenance statement

0.6.2

Patch Changes

  • b234d1d: feat: added two events to standalone references build with tests

0.6.1

Patch Changes

  • a8c3045: build: re-introduce @scalar/use-toasts package

0.5.15

Patch Changes

  • c6b95ca: chore: upgrade from Vite 4 to Vite 5

0.5.14

Patch Changes

  • 92a8b9f: chore: update dependencies

0.5.13

Patch Changes

  • 81543f42: chore: add support for Node 18

0.5.12

Patch Changes

  • 5ca138ee: - Removed activeBreadCrumb from api-client as its available in the slot
    • Centralized navigation logic
    • use proper anchor navigation instead of scrollIntoView, it will also be saved to history
    • scrolling down will open the next section

0.5.11

Patch Changes

  • d1caa4ee: fix: self contain app and toast containers + size changing fix

0.5.10

Patch Changes

  • f9bfa97: feat: add buttons to header for classic layout

0.5.9

Patch Changes

  • 35dffe4: chore: include @scalar dependencies in the bundle

0.5.8

Patch Changes

  • c3b215f: chore: no pinned peer dependency versions

0.5.7

Patch Changes

  • 55246e5: chore: rewrite all package.jsons (including their prod, dev and peer dependency requirements)

0.5.6

Patch Changes

  • 2eba4010: Refactor and simplify API references layout

0.5.5

Patch Changes

  • af4ec8d3: update discord links

0.5.4

Patch Changes

  • 1cbcabd7: lots of amazing fixes from when we missed last patch

0.5.3

Patch Changes

  • cd5f2685: codemirror colors + font fixes throughout app

0.5.2

Patch Changes

  • 048555c6: feat: add CHANGELOG.md to the package

0.5.1

Patch Changes

  • addd9fa2: feat: use default prefix for all CSS variables

0.5.0

Minor Changes

  • 87fda5af: chore: update dependencies

Patch Changes

  • ef080a26: chore: format package.json

0.4.1

Patch Changes

  • 10498d9d: chore: add README
  • 494083a0: add more information to the package.json

0.4.0

Minor Changes

  • 5057e213: make npm packages public :-)

0.3.0

Minor Changes

  • b0f5221: manually releasing all packages to make sure the lastest version is on npm