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.
vue3-popper
Advanced tools
A popover component for Vue 3
Check out the documentation
npm install vue3-popper
yarn add vue3-popper
<template>
<Popper>
<button>Trigger element</button>
<template #content>
<div>This is the Popper content</div>
</template>
</Popper>
</template>
<script>
import { defineComponent } from "vue";
import Popper from "vue3-popper";
export default defineComponent({
components: {
Popper,
},
});
</script>
Name | Default | Description |
---|---|---|
placement | bottom | Preferred placement of the popover |
disableClickAway | false | Disables automatically closing the popover when the user clicks away from it |
offsetX | 0 | Distance in pixels along the trigger element |
offsetY | 12 | Distance in pixels away from the trigger element |
hover | false | Trigger the popover on hover |
arrow | false | Display an arrow on the popover |
arrowPadding | 0 | Stop arrow from reaching the edge of the Popper (in pixels) |
Name | Description |
---|---|
open:popper | When the popover is open |
close:popper | When the popover is hidden |
Name | Description |
---|---|
content | For the popover content |
The content
slot gives you access to useful variables and functions.
Name | Type | Description |
---|---|---|
close | function | A function to close the Popper |
Popper
only comes with some barebones styling by default, but it also uses a list of predefined CSS variables. You can overwrite these variables to suit your needs.
CSS variable | Example value |
---|---|
--popper-theme-background-color | #ffffff |
--popper-theme-background-color-hover | #ffffff |
--popper-theme-text-color | inherit |
--popper-theme-border-width | 1px |
--popper-theme-border-style | solid |
--popper-theme-border-color | #eeeeee |
--popper-theme-border-radius | 6px |
--popper-theme-padding | 16px |
--popper-theme-box-shadow | 0 6px 30px -6px rgba(0, 0, 0, 0.25) |
FAQs
A Vue 3 popper component. Uses PopperJS v2.
The npm package vue3-popper receives a total of 41,906 weekly downloads. As such, vue3-popper popularity was classified as popular.
We found that vue3-popper 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.