Error Trace Alert
A rose error alert built on a details element that expands to reveal a compact stack trace when clicked.
- lines of CSS
- 52lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- motion only on interaction
- Hovermotion only on interaction
✕Build faileddetails
TypeError: x is undefined at render (app.js:42) at main (app.js:9)
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v12-al-trace-15182 {
width: 240px;
background: #1c0a0f;
color: #ffe4e6;
border: 1px solid #f43f5e;
border-left-width: 4px;
border-radius: 0.5rem;
overflow: hidden;
font-family: system-ui, sans-serif;
transition: box-shadow 0.3s ease;
}
.fx-v12-al-trace-15182 summary {
display: flex;
align-items: center;
gap: 0.55rem;
padding: 0.6rem 0.75rem;
cursor: pointer;
list-style: none;
}
.fx-v12-al-trace-15182 summary::-webkit-details-marker { display: none; }
.fx-v12-al-trace-15182 summary i {
width: 18px; height: 18px;
display: grid; place-items: center;
font-style: normal;
font-size: 0.65rem;
font-weight: 700;
color: #fff;
background: #f43f5e;
border-radius: 50%;
}
.fx-v12-al-trace-15182 summary b { flex: 1; font-size: 0.8rem; }
.fx-v12-al-trace-15182 summary em {
font-style: normal;
font-size: 0.62rem;
color: #fb7185;
text-decoration: underline dotted;
transition: color 0.2s ease;
}
.fx-v12-al-trace-15182[open] summary em { color: #fecdd3; }
.fx-v12-al-trace-15182 pre {
margin: 0;
padding: 0.5rem 0.75rem 0.6rem;
font-size: 0.6rem;
line-height: 1.45;
color: #fda4af;
background: #2a0d15;
border-top: 1px solid rgba(244,63,94,0.3);
white-space: pre;
overflow: hidden;
}
.fx-v12-al-trace-15182:hover { box-shadow: 0 0 0 3px rgba(244,63,94,0.2); }
.fx-v12-al-trace-15182:hover summary em { color: #fff; }<details class="fx-v12-al-trace-15182">
<summary>
<i>✕</i>
<b>Build failed</b>
<em>details</em>
</summary>
<pre>TypeError: x is undefined
at render (app.js:42)
at main (app.js:9)</pre>
</details>What do I do with this?
- Put
error-trace-alert-15183.cssanywhere your page already loads CSS from — in Next.js that isapp/globals.css, or any stylesheet with a<link>in your HTML. - Then put the class on the element you want it on:
<button class="fx-v12-al-trace-15182">. The CSS does nothing until a class name in it matches something on the page.
- Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add error-trace-alert-15183What's included
- The markup and the stylesheet, in whichever framework you pick
- No runtime dependencies
Works with
- React
- Vue
- Svelte
- Tailwind
- styled-components
- Plain CSS
npx hoverlab add error-trace-alert-15183
Or over MCP, from your editor's agent — no account needed.
License
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Motion safety
Static estimate, read from the CSS
- Reduced motion
- Brief motion, no guard
Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.
- What it animates
- Repaints
Animates
box-shadow,color. No reflow, but the browser repaints every frame, which is fine for one element and costly across many. - Flashing (WCAG 2.3.1)
- No flashing found
No repeating change in opacity, colour or brightness large enough to count as a flash.
- Layout shift (CLS)
- No shift expected
Nothing it animates moves or resizes the box in flow. A category from the CSS, not a measurement for this effect.
Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed
30 more effects in Alerts & Toasts
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse Alerts & ToastsShipping one commercially
Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
- A commercial licence for everything in the catalog
- Unlimited bundle exports, in Vue, Svelte and Tailwind
- One payment — no subscription, nothing to renew
7 variations of Error Trace Alert
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.