MCPcopy
hub / github.com/adobe/react-spectrum / add

Method add

packages/react-stately/src/toast/useToastState.ts:43–43  ·  view source on GitHub ↗

Adds a new toast to the queue.

(content: T, options?: ToastOptions)

Source from the content-addressed store, hash-verified

41export interface ToastState<T> {
42 /** Adds a new toast to the queue. */
43 add(content: T, options?: ToastOptions): string;
44 /**
45 * Closes a toast.
46 */

Callers 15

addDepFunction · 0.65
appendElementFunction · 0.65
typesMethod · 0.65
dnd.test.jsFile · 0.65
useInteractionModalityFunction · 0.65
useFocusVisibleListenerFunction · 0.65
onTransitionStartFunction · 0.65
runAfterTransitionFunction · 0.65
currentNodeMethod · 0.65
markDirtyMethod · 0.65
subscribeMethod · 0.65

Implementers 1

ToastQueuepackages/react-stately/src/toast/useTo

Calls

no outgoing calls

Tested by 1

appendElementFunction · 0.52