Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProSystem style heads-up overlays in refractive glass, driven by one useHud hook: volume and brightness capsules whose liquid bar and drawn icon follow the value and squish when you push past the limit, top capsules for copied or silent confirmations that stack and restack on springs, a centered saved card with a stroke-drawn check, and a progress card with a ring that turns into a check or a cross. Items auto dismiss, are announced through a polite live region, and the demo responds to arrow keys and a glass control bar. Reduced motion removes the springs and drawing animations.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { HudOverlayToasts } from "@/components/hyperblur-pro/hud-overlay-toasts"
<HudOverlayToasts />
<HudHost appearance="auto">
<App />
</HudHost>
const hud = useHud();
hud.toast({ title: "Link copied", icon: "copy" });
hud.level("volume", 0.7);
const job = hud.progress("Uploading");
job.update(0.5);
job.done("Uploaded");| Prop | Type | Default | Description |
|---|---|---|---|
| backdrop | string | "https://images.unsplash.com/photo-1494500764479-0c8f2919a3d8" | HudOverlayToasts: photo behind the overlays; its brightness follows the brightness HUD. |
| title / subtitle | string | "Feedback that floats." | HudOverlayToasts: heading and paragraph. |
| demo | boolean | true | HudOverlayToasts: show a volume capsule, a copied capsule and an export in progress on load. |
| appearance | "light" | "dark" | "auto" | "dark" | Glass tint and text color of the overlays. |
| accent | string | "#0a84ff" | Volume fill, progress ring and default icon color. |
| refraction | number | 1 | Lens strength of the glass. |
| HudHost inline | boolean | false | HudHost: render overlays inside the nearest positioned parent instead of the viewport. |
| useHud().toast | ({ title, subtitle?, icon?, position?, duration?, tint? }) => id | top, 2200 ms | Show a capsule at the top or a card in the center. |
| useHud().level | ("volume" | "brightness", value: number) => void | 1600 ms | Show or update the level capsule; values beyond 0..1 trigger the limit squish. |
| useHud().progress | (title, { subtitle? }) => { update, done, fail } | undefined | Show a progress card and resolve it into a check or a cross. |
Source code is included in Pro and above