
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
vue-smart-sticky-sidebar
Advanced tools
Vue 3 sidebar component that sticks to top or bottom of the screen when page scrolls, based on scroll direction.
Vue 3 sidebar component that sticks to top or bottom of the screen when page scrolls, based on scroll direction.
yarn add vue-smart-sticky-sidebar
Import SmartStickySidebar
component in script section of SFC:
import { SmartStickySidebar } from 'vue-smart-sticky-sidebar'
Then in template section:
<!-- element with display: flex -->
<div class="wrapper">
<SmartStickySidebar>
<!-- sidebar content here -->
</SmartStickySidebar>
<main class="content">
<!-- main content there -->
</main>
</div>
type: any
default: ''
Accepts any valid expression for outer (static) element's :class
attribute
type: any
default: ''
Accepts any valid expression for inner (moving) element's :class
attribute
type: number
default: 0
Distance in pixels between sidebar content sticked to the top and window top
type: number
default: 0
Distance in pixels between sidebar content sticked to the bottom and window bottom
Run in dev mode:
yarn dev
Open link from console in browser to see Playground
ubzor (c) 2024
FAQs
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
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.