Astro

RecipeUse a client script or island. Same imperative API as vanilla JS. No dedicated Astro adapter.

---
// client script or framework island
---
<script>
  import { toast } from "alert-notify";
  document.querySelector("button")?.addEventListener("click", () => {
    toast.success("Saved");
  });
</script>