Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
41
export
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
addDep
Function · 0.65
appendElement
Function · 0.65
types
Method · 0.65
dnd.test.js
File · 0.65
useClipboard.test.js
File · 0.65
useInteractionModality
Function · 0.65
useFocusVisibleListener
Function · 0.65
onTransitionStart
Function · 0.65
runAfterTransition
Function · 0.65
currentNode
Method · 0.65
markDirty
Method · 0.65
subscribe
Method · 0.65
Implementers
1
ToastQueue
packages/react-stately/src/toast/useTo
Calls
no outgoing calls
Tested by
1
appendElement
Function · 0.52