Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@windui/snackbar

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windui/snackbar - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json

@@ -21,3 +21,3 @@ {

"name": "@windui/snackbar",
"version": "1.1.0",
"version": "1.1.1",
"contributors": [

@@ -24,0 +24,0 @@ "Swôth <swothh@gmail.com>"

@@ -14,3 +14,3 @@ <h1 align="center">@windui/snackbar</h1>

```html
<script src="https://cdn.jsdelivr.net/npm/@windui/snackbar@1.0.0/windui.snackbar.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@windui/snackbar@latest/windui.snackbar.min.js"></script>
```

@@ -49,39 +49,2 @@

};
```
# DOM Example
```html
<!DOCTYPE html>
<html>
<head>
<title>@windui/snackbar</title>
</head>
<body>
<button onclick="trigger()">
Show Snackbar!
</button>
<script src="https://cdn.jsdelivr.net/npm/@windui/snackbar@1.0.0/windui.snackbar.min.js"></script>
<script>
const trigger = () => {
const hello = new Snackbar({
options: {
duration: 3000,
speed: 500, // animation speed
type: "info", // snackbar types: info, success, error, warning
align: "right", // right or left
position: "bottom" // top or bottom
},
title: "Hello World!",
message: "No post on Sundays!"
});
// show snackbar
hello.show();
// hide before timeout
// hello.hide();
};
</script>
</body>
</html>
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc