Feature Library

Toasts and notification centre

Not measured yet
Still
The live demo starts when it’s in view.Save a take, then three at once · click a line in the margin to open it · Archive offline shows an error

Messages land in a margin beside the work, never on it.

Each unfolds from a mark on a spine, then folds to one line, so the margin is the history: filled is unread, hollow is read, a diamond is an error. A burst fuses into one counted mark, and every message keeps its own Undo.

What it costs a frame

Not measured yet.

What it needs

Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages
With an agent
install("toasts")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it up

What it’s for

  1. Confirming background saves
  2. Retaining undo after a toast expires
  3. Monitoring failures during a batch
  4. A history of what the app just did

Pitfalls, in brief

  1. Reserve the margin in the layout: a column beside the work, or a band above it on a phone.
  2. In a column, give the host a height the notices cannot change (lay it over its grid cell, as the demo does), or an opened note makes the work’s card taller.
  3. A host of 17em or wider is taken as a strip and shows one record at a time.
  4. Group only events that share a meaningful count.
  5. An error never times out: it stays open until someone reads it, retries it or presses Read all.
1 more in brief
  1. History belongs to one mounted centre and lives in memory (200 records by default).
6 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

Written for the library. Fully custom code.

W3C WAI-ARIA Authoring Practices: An error announcement leaves focus where the operator is working.

toastsnotification centreundolive regionburstsread unreadkeyboardreduced motionrtltouchno dependencies

Near it in the frame