KodeKarsa UI

Overlays

Toast

A short notification after an action. Call toast() from anywhere; Toaster is mounted once at the root.

src/components/ui/toast.tsxBehavior from @ui-sdk/react/toast

Kinds and progress

Import

tsx
import { Toaster, toast } from "@/components/ui/toast";

Guidelines

  • For the result of an action, not for form errors (show those in the field).
  • Actions such as "Undo" must also be reachable somewhere else.