useToast
Import
import { useToast, GRANULARITY_TOAST_STATE, granularityToastPlugin } from '@feugene/granularity/composables/useToast'Exports
GrToastTonetypetype GrToastTone = GrToneToastActiontypetype ToastActionToastInputtypetype ToastInputToastPromiseMessagestypetype ToastPromiseMessagesToasttypetype ToastToastStatetypetype ToastStateGranularityToastPluginOptionstypetype GranularityToastPluginOptionsGRANULARITY_TOAST_STATEconstconst GRANULARITY_TOAST_STATE: InjectionKey<ToastState>granularityToastPluginconstconst granularityToastPlugin:resetToastContextWarningfunctionfunction resetToastContextWarning(): voiduseToastfunctionfunction 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
Source: @feugene/granularity 0.41.0, package.json#exports and dist/types