1.1.4 • Published 6 months ago

astro-toast v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

astro-toast

astro-toast is a simple library for displaying toasts on your website.

Example:

---
import Toast from "astro-toast";
---

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    <meta name="viewport" content="width=device-width" />
    <meta name="generator" content="{Astro.generator}" />
    <title>Astro</title>
  </head>
  <body>
    <Toast variant="error" where="bottom-end">Message</Toast>
  </body>
</html>

Props:

variant?: "error" | "warning" | "success" | "info";

where?:
| "top-start"
| "top-center"
| "top-end"
| "middle-start"
| "middle-center"
| "middle-end"
| "bottom-start"
| "bottom-center"
| "bottom-end";
1.1.4

6 months ago

1.1.3

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago