A short confirmation at the bottom of the window, e.g. after copying. Call toast("…") from anywhere; the Toaster in the root layout shows it. One at a time (a new one replaces it), shown at once, leaving after 3 seconds (paused while hovered). Screen readers announce it without moving focus.
Source: src/components/ui/toast.tsx
"use client";
import { Button } from "@/components/ui/button";
import { toast } from "@/components/ui/toast";
export default function ToastExample() {
return (
<>
<Button variant="secondary" onClick={() => toast("Copied as PNG")}>
Show a toast
</Button>
<Button variant="secondary" onClick={() => toast("Link copied")}>
Show another
</Button>
</>
);
}