JSPM

vue3-resize-sensor

2.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 563
    • Score
      100M100P100Q100737F
    • License MIT

    detect container resizing

    Package Exports

    • vue3-resize-sensor

    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-resize-sensor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    vue-resize-sensor

    detect container resizing.

    • event based
    • no window.onresize
    • no interval/timeout detection
    • no CSS modifications
    • no Javascript-Framework dependency

    Example

    <template>
      <div>
        <resize-sensor @resize="resize"></resize-sensor>
      </div>
    </template>
    

    API

    props

    initial Boolean

    Request an initial size event.

    events

    @resize Object

    A size object { width, height }

    Browser support

    Same browser support as Vue.js 2

    Note

    since v2.x, the script is exported as esm.

    Credits

    Franck Freiburger