Skip to content

useNotifications


ts
import { useNotifications } from 'notivue'

Composable that returns an object with two computed properties:

  • entries - Array of all current displayed notifications
  • queue - Array of all enqueued notifications

Interfaces

ts
declare function useNotifications(): NotivueComputedEntries

interface NotivueComputedEntries {
  entries: ComputedRef<NotivueItem[]>
  queue: ComputedRef<NotivueItem[]>
}