
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
vue-sticky-to-parent
Advanced tools
Makes block sticky to it's parent block. To see how it works, please, see the demo.
Makes block sticky to it's parent block. To see how it works, please, see the demo.
If you want to install package from npmjs registry(recommended) use:
npm i vue-sticky-to-parent
yarn add vue-sticky-to-parent
pnpm add vue-sticky-to-parent
If you want to install package from GitHub packages use:
npm install @siibragimov/vue-sticky-to-parent
Note: Don't forget to configure registry for installing packages from GitHub. Use .npmrc file or use command:
npm config set registry https://npm.pkg.github.com/
For Vue 3:
// in entry point (main.js)
import '../node_modules/vue-sticky-to-parent/dist/style.css';
For Nuxt 3:
// nuxt.config.ts
export default defineNuxtConfig({
css: ['~/node_modules/vue-sticky-to-parent/dist/style.css'],
});
Note: If you have problems with import, check the file path and especially the prefix.
App.vue
.Note: the .container
should have full height of the column, component sticks to it and moves "inside" it.
import { VueStickyToParent } from 'vue-sticky-to-parent'
Define ref
for the parent container and pass it to vue-sticky-to-parent
component props.
const container = ref<HTMLElement>();
Example:
<aside ref="container" class="container">
<VueStickyToParent :parent="container">
<div class="sticky">
<!-- YOUR CONTENT -->
</div>
</VueStickyToParent>
</aside>
To run in development mode
npm run dev
Use for build component
npm run build
and follow the instruction in console to open the test page.
To generate types you can use:
npm run types
FAQs
Makes block sticky to it's parent block. To see how it works, please, see the demo.
The npm package vue-sticky-to-parent receives a total of 10 weekly downloads. As such, vue-sticky-to-parent popularity was classified as not popular.
We found that vue-sticky-to-parent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.