Toast

Return Toast

A batch undo with a ring timer instead of a bar: seconds count down inside the ring, and the “Restore” button brings several items back in one action.

What you can change

  • the action text through message and the after-undo text through returnedMessage
  • the button caption through returnLabel
  • the countdown copy through countdownText with its {seconds} placeholder and expiredText

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/toast-013?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-toast-013-* variables. The theme comes from the surrounding color-scheme through light-dark(), while the background prop replaces only the card surface. The timer is a conic-gradient whose fraction of the circle is computed from the --vibeui-toast-013-percent variable, and the number of seconds in the centre of the ring duplicates the same value as text, so the countdown is readable both by eye and aloud through aria-live. Hover and focus pause the timer through a ref rather than through a re-render. After "Restore" is pressed the ring turns into a checkmark and the button disappears — the state is held by useState, the component is client-side. Every caption is exposed as a prop: message, returnedMessage, returnLabel, expiredText and the countdownText template with its {seconds} placeholder.

Tags

  • toast
  • undo
  • batch
  • timer
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…