MCPcopy Create free account
hub / github.com/adobe/react-spectrum / negative

Function negative

packages/@react-spectrum/s2/src/Toast.tsx:154–156  ·  view source on GitHub ↗

Queues a negative toast.

(children: string, options: ToastOptions = {})

Source from the content-addressed store, hash-verified

152 },
153 /** Queues a negative toast. */
154 negative(children: string, options: ToastOptions = {}): CloseFunction {
155 return addToast(children, 'negative', options);
156 },
157 /** Queues an informational toast. */
158 info(children: string, options: ToastOptions = {}): CloseFunction {
159 return addToast(children, 'info', options);

Callers

nothing calls this directly

Calls 1

addToastFunction · 0.70

Tested by

no test coverage detected