Skip to content

API Reference / @gtkx/components / adw / ToastController

Type Alias: ToastController

ToastController = object

Defined in: adw/types.d.ts:10

Imperative controls for individual toasts, returned by useToast.

Properties

dismiss

dismiss: (toast) => void

Defined in: adw/types.d.ts:14

Dismisses a single toast, typically one returned by ToastController.show.

Parameters

toast

Adw.Toast

Returns

void


show

show: (options?) => Adw.Toast

Defined in: adw/types.d.ts:12

Builds a toast, shows it through the overlay, and returns it.

Parameters

options?

ToastOptions

Returns

Adw.Toast

Released under the MPL-2.0 License.