JSPM

vue3-deferred-content

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 427
  • Score
    100M100P100Q95052F
  • License MIT

A Vue3 component to detect when HTML element or component is becoming visible/hidden on the page.

Package Exports

  • vue3-deferred-content

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue3-deferred-content) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue3-deferred-content

A Vue3 component to detect when HTML element or component is becoming visible/hidden on the page.

🚀 Features

  • 🔗 0 dependencies: No worry about your bundle size
  • 🦾 Type Strong: Written in Typescript
  • 📦 Size: ~16kb

📎 Installation

$ npm i vue3-deferred-content
# or
$ yarn add vue3-deferred-content

👽 Usage

main.js:

import { createApp } from 'vue'
import App from './App.vue'
import VueDeferredContent from 'vue3-deferred-content'

const app = createApp(App)
const options = {
  name: '',       // string
  threshold: '',  // number | number[]
  rootMargin: '', // string
}
app.use(VueDeferredContent, options)
app.mount('#app')