Toastflow
Playground
Vue

Timers & Progress

Duration rules, progress bars, pause strategies, queue behavior, and the loading helper.

Timer behavior is deterministic and controlled by duration, pauseOnHover, and pauseStrategy.

Duration Rules

ValueBehavior
Finite > 0Auto-dismiss scheduled
InfinityNo auto-dismiss
0No auto-dismiss (treated as non-finite)

When duration is not finite, the progress bar is automatically disabled.

Progress Bar

Enable with progressBar: true (default). Only renders when duration is finite.

toast.info({
  title: "Uploading",
  duration: 8000,
  progressBar: true,
  progressAlignment: "left-to-right",
});

Alignment options: right-to-left (default) or left-to-right.

Try this example

Button mirrors the timed progress-bar example shown above.

Copyright © 2026