claude-web/node_modules/vue-grid-layout-v3/website/docs/guide/README.md

708 B

Installation

NPM

npm install vue-grid-layout-v3 --save

Yarn

yarn add vue-grid-layout-v3

Import the library

    import VueGridLayout from 'vue-grid-layout-v3';

Add to other Vue components

   export default {
       components: {
           GridLayout: VueGridLayout.GridLayout,
           GridItem: VueGridLayout.GridItem
       },
   // ... data, methods, mounted (), etc.
   }

browser

Include the browser-ready bundle (download from releases) in your page. The components will be automatically available.

    <script src="vue-grid-layout-v3.umd.min.js"></script>