Toast
Grouped Toast
Grouped notifications in one card: a heading with a counter, a folded list with an “+N more” line and expand-on-click instead of a stream of separate toasts.
What you can change
- the group heading through groupTitle and the list through items
- the number of items shown before folding through visibleCount
- the captions through expandLabel with its {count} placeholder, collapseLabel, closeLabel and emptyText
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/toast-018?lang=en&theme=dark
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-018-* variables. Client-side: "use client". The list is capped by visibleCount, the remainder is obtained by subtraction and rendered as a "Show all · N more" line; a click toggles useState and the data-expanded attribute, which switches the max-height of the <ul> — the expansion is animated in pure CSS without measuring height in JS. The expand button carries aria-expanded, and every item is dismissed by its own button with the event name in its aria-label. The theme comes from the surrounding color-scheme through light-dark(), while the background prop replaces only the card surface. The expand caption is the expandLabel template with a {count} placeholder, and the empty-list line is exposed through emptyText.
Tags
- toast
- group
- counter
- expand
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…