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

Method close

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

* Closes a toast.

(key: string)

Source from the content-addressed store, hash-verified

45 * Closes a toast.
46 */
47 close(key: string): void;
48 /** Pauses the timers for all visible toasts. */
49 pauseAll(): void;
50 /** Resumes the timers for all visible toasts. */

Callers 15

handleHideFunction · 0.65
onKeyDownFunction · 0.65
useTooltipFunction · 0.65
onKeyDownFunction · 0.65
useComboBoxFunction · 0.65
useSubmenuTriggerFunction · 0.65
onLongPressStartFunction · 0.65
useToastFunction · 0.65
MenuButtonFunction · 0.65

Implementers 1

ToastQueuepackages/react-stately/src/toast/useTo

Calls

no outgoing calls

Tested by

no test coverage detected