
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
vue-pure-modal
Advanced tools
👾 Pure & simple Vue Modal component. Basic a11y covered.
npm i vue-pure-modal
Checkout demo example on CodeSandbox.
As global component:
import PureModal from 'vue-pure-modal';
import Vue from 'vue';
Vue.use(PureModal);
Or import where you use it in your components:
import { PureModal } from 'vue-pure-modal';
...
components: {
PureModal
}
<pure-modal v-if="showModal" @close="showModal = false">
<template v-slot:header>
<b>Pure</b> Modal Title
</template>
<template v-slot:footer>
<button @click="showModal = false">Hide me!</button>
</template>
Modal body here as a message.
</pure-modal>
You can specify additional options:
animate
- to apply smooth open/close transition. true
by default.focusTrap
- to trap tab focus inside modal while open. true
by default.describedByBody
- to set modal a11y describedBy to modal body section. false
by default.To use basic style (its not really pretty sorry!) just import generated css:
import 'vue-pure-modal/dist/puremodal.css';
In case you want to use this basic style and overwrite some parts of it you can simply do so since it was written with BEM naming.
Example in scss:
.my-custom-class.puremodal .puremodal {
&__body {
font-size: 2rem;
}
}
Or in regular css:
.my-modal.puremodal .puremodal__body {
font-size: 2rem;
}
Changing backdrop modal throws is also easy:
.my-modal.puremodal.puremodal__drop {
color: blue;
}
To overwrite default styles coming with modal be sure to add your custom css class to <pure-modal>
component, like .my-modal
in examples above.
MIT.
FAQs
Pure & simple Modal component for Vue
The npm package vue-pure-modal receives a total of 13 weekly downloads. As such, vue-pure-modal popularity was classified as not popular.
We found that vue-pure-modal 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.