Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
simple-callout
Advanced tools
A simple, style-agnostic callout box that can be shown and hidden from any position.
Install simple-callout with Bower
$ bower install simple-callout --save
Import it into the <head>
of your page
<link rel="import" href="/bower_components/simple-callout/simple-callout.html">
Then use simple-callout in your project
<simple-callout arrow="top left">
<span>My callout contents</span>
</simple-callout>
To ensure that the content inside the callout is layered on top of the callout's arrow, always use elements rather than just text nodes (eg: <span>text</span>
instead of text
);
Simple callout relies on emerging standards, and you will need to include polyfills for cross-browser support:
<script src="/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
--
Property | Type | Default | Description |
---|---|---|---|
active | Boolean | false | Controls whether the callout is visible or not |
origin | String | undefined | The origin position that the callout expands from. Can be any combination of top/bottom/left/right/center |
arrow | Boolean | false | Whether the callout has a little arrow at its origin |
noOutsideClick | Boolean | false | Disable closing the callout on outside clicks |
noEscape | Boolean | false | Disable closing the callout on escape key presses |
<simple-callout origin="bottom center" arrow no-escape></simple-callout>
Method | Arguments | Description |
---|---|---|
open() | none | Utility method to open the callout |
close() | none | Utility method to close the callout |
toggle() | none | Utility method to toggle the callout |
In addition to styling the callout directly, you can also set these CSS properties
Property | Default | Description |
---|---|---|
--simple-callout-arrow-size | 8px | Size of the callout's arrow |
Apply properties on simple-callout
simple-callout {
--simple-callout-arrow-size: 12px;
}
--
MIT © Simpla
FAQs
A simple callout box/tooltip
The npm package simple-callout receives a total of 1 weekly downloads. As such, simple-callout popularity was classified as not popular.
We found that simple-callout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.