Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
svelte-modal
Advanced tools
A vanilla JS basic popup modal made with Svelte. Use this as the base component for making nice, useful modals, like svelte-dialog.
$ npm install svelte-modal
import Modal from 'svelte-modal'
const content = document.createElement('p')
content.textContent = 'Modal content.'
const modal = new Modal({
center: false, // false => aligned to top, true => aligned to center
zIndexBase: 1, // adjust the relative z-index of the modal
transitionDuration: 225, // duration of transition in and out
pressScrimToDismiss: true, // press outside the modal to dismiss it
escapeToDismiss: true, // press escape key to dismiss the modal
slots: { default: content }
})
modal.on('result', result => {
result // result of either modal.close or modal.dismiss
})
modal.on('closed', result => {
result // result that was passed to `modal.close`
})
modal.on('dismissed', result => {
result // result that was passed to `modal.dismissed`
})
modal.on('hidden', () => {}) // fires when the modal has finished transitioning out
modal.open()
modal.close('foo')
// or
modal.dismiss('bar')
FAQs
A vanilla JS modal component made with Svelte.
The npm package svelte-modal receives a total of 0 weekly downloads. As such, svelte-modal popularity was classified as not popular.
We found that svelte-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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.