@vicinae/api
    Preparing search index...

    Function showToast

    • Show a toast notification on the bottom left of the Vicinae window, briefly replacing the navigation title. Toast can have different style depending on the nature of the notification, and can even use Toast.Style.Animated to display a loading spinner and refresh the title in realtime.

      Parameters

      Returns Promise<Toast>

      import { showToast, Toast } from "@raycast/api";
      import { setTimeout } from "timers/promises";

      export default async () => {
      const toast = await showToast({ style: Toast.Style.Animated, title: "Uploading image" });

      await setTimeout(1000);

      toast.style = Toast.Style.Success;
      toast.title = "Uploaded image";
      };