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

Function positive

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

Queues a positive toast.

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

Source from the content-addressed store, hash-verified

148 },
149 /** Queues a positive toast. */
150 positive(children: string, options: ToastOptions = {}): CloseFunction {
151 return addToast(children, 'positive', options);
152 },
153 /** Queues a negative toast. */
154 negative(children: string, options: ToastOptions = {}): CloseFunction {
155 return addToast(children, 'negative', options);

Callers

nothing calls this directly

Calls 1

addToastFunction · 0.70

Tested by

no test coverage detected