@spectrum-web-components/action-button
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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> | ||
``` |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 24 instances in 1 package
8
565
339161
34
1417
1