New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@spectrum-web-components/action-button

Package Overview
Dependencies
Maintainers
13
Versions
326
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/action-button - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

15

package.json
{
"name": "@spectrum-web-components/action-button",
"version": "1.0.1",
"version": "1.0.2",
"publishConfig": {

@@ -61,7 +61,7 @@ "access": "public"

"dependencies": {
"@spectrum-web-components/base": "^1.0.1",
"@spectrum-web-components/button": "^1.0.1",
"@spectrum-web-components/icon": "^1.0.1",
"@spectrum-web-components/icons-ui": "^1.0.1",
"@spectrum-web-components/shared": "^1.0.1"
"@spectrum-web-components/base": "^1.0.2",
"@spectrum-web-components/button": "^1.0.2",
"@spectrum-web-components/icon": "^1.0.2",
"@spectrum-web-components/icons-ui": "^1.0.2",
"@spectrum-web-components/shared": "^1.0.2"
},

@@ -76,4 +76,3 @@ "devDependencies": {

"./**/*.dev.js"
],
"gitHead": "b359bc0242712be118c5e3e2cc05f88707d3eeb1"
]
}

@@ -543,1 +543,23 @@ ## Description

```
## Handling events
Events handlers for clicks and other user actions can be registered on a
`<sp-action-button>` as on a standard HTML `<button>` element.
```html
<sp-button onclick="spAlert(this, '<sp-action-button> clicked!')">
Click me
</sp-button>
```
In addition to handling events like a native `<button>` HTML element, one can also use a `<sp-action-button>` in place of the `<a>` HTML element by using the `href` and optional `target` attribute.
```html
<sp-action-button
href="https://github.com/adobe/spectrum-web-components"
target="_blank"
>
Click me
</sp-action-button>
```
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