Skip to content

useNotifications


ts
import { useNotifications } from 'notivue'

Returns an object of two computed properties:

  • entries - Computed array of all current displayed notifications
  • queue - Computed array of all enqueued notifications

Interfaces

ts
declare function useNotifications(): NotivueComputedEntries

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