Collapsed notification deck that fans open on hover — each dismiss re-settles the pile, and a quiet restore control appears once every alert is cleared. Light and dark via theme tokens.
import { useEffect } from "react"import { AlertStack } from "@/components/ui/alert-stack"export default function DemoOne() { // open the preview in dark by default; the sandbox theme toggle still works useEffect(() => { document.documentElement.classList.add("dark") }, []) return ( <div className="flex min-h-[320px] w-full items-center justify-center p-8"> <AlertStack /> </div> )}