useToast

Import

import { useToast, GRANULARITY_TOAST_STATE, granularityToastPlugin } from '@feugene/granularity/composables/useToast'

Exports

GrToastTonetype
type GrToastTone = GrTone
ToastActiontype
type ToastAction
ToastInputtype
type ToastInput
ToastPromiseMessagestype
type ToastPromiseMessages
Toasttype
type Toast
ToastStatetype
type ToastState
GranularityToastPluginOptionstype
type GranularityToastPluginOptions
GRANULARITY_TOAST_STATEconst
const GRANULARITY_TOAST_STATE: InjectionKey<ToastState>
granularityToastPluginconst
const granularityToastPlugin:
resetToastContextWarningfunction
function resetToastContextWarning(): void
useToastfunction
function useToast():

Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.

Library prose

Read it in the repository: docs/components/GrToaster.md

Source: @feugene/granularity 0.41.0, package.json#exports and dist/types