Gathering detailed insights and metrics for vue-masonry-wall
Gathering detailed insights and metrics for vue-masonry-wall
Gathering detailed insights and metrics for vue-masonry-wall
Gathering detailed insights and metrics for vue-masonry-wall
@yeger/vue-masonry-wall
Responsive masonry layout with SSR support and zero dependencies for Vue 3.
@yeger/vue-masonry-wall-core
This package contains the core logic for [`vue-masonry-wall`](../vue-masonry-wall/README.md) and [`vue2-masonry-wall`](../vue2-masonry-wall/README.md).
@yeger/vue2-masonry-wall
Responsive masonry layout with SSR support and zero dependencies for Vue 2.
@chahindb7/vue-masonry-wall
Responsive masonry layout with SSR support and zero dependencies for Vue 3 (modified by Chahin).
A pure vue responsive masonry layout without direct dom manipulation and ssr support.
npm install vue-masonry-wall
Typescript
Module System
Min. Node Version
Vue (54.6%)
JavaScript (45.4%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
224 Stars
41 Commits
29 Forks
7 Watchers
12 Branches
5 Contributors
Updated on Jul 07, 2025
Latest Version
0.3.2
Package Id
vue-masonry-wall@0.3.2
Unpacked Size
45.59 kB
Size
11.16 kB
File Count
10
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
A pure vue responsive masonry implementation without direct dom manipulation, ssr friendly with lazy appending. I created this because other libraries has no SSR support, and I needed a pure vue implementation.
1npm i vue-masonry-wall 2# or yarn 3yarn add vue-masonry-wall
1<vue-masonry-wall :items="items" :options="options" @append="append"/>
1const items = [] 2const options = { 3 width: 300, 4 padding: { 5 default: 12, 6 1: 6, 7 2: 8 8 } 9} 10 11const append = () => { 12 // API call and add items 13 this.items.push(...[]) 14}
1<template> 2 <div id="app"> 3 <h2>Masonry: append endlessly</h2> 4 5 <vue-masonry-wall :items="items" :options="{width: 300, padding: 12}" @append="append"> 6 <template v-slot:default="{item}"> 7 <div class="item"> 8 <h5>{{item.title}}</h5> 9 <p>{{item.content}}</p> 10 </div> 11 </template> 12 </vue-masonry-wall> 13 </div> 14</template> 15 16<script> 17 import VueMasonryWall from "vue-masonry-wall"; 18 19 export default { 20 name: 'app', 21 components: {VueMasonryWall}, 22 data() { 23 return { 24 items: [ 25 {title: 'Item 0', content: 'Content'}, 26 {title: 'Item 1', content: 'Content'}, 27 ] 28 } 29 }, 30 methods: { 31 /** 32 * I am mocking a API call that load 20 objects at a time. 33 */ 34 append() { 35 for (let i = 0; i < 20; i++) { 36 this.items.push({title: `Item ${this.items.length}`, content: 'Content'}) 37 } 38 } 39 } 40 } 41</script>
Add :ssr="{columns: 2}"
to masonry so that during SSR, it will be load in 2 columns.
SSR has no clue what is the size of your height of your element or width of the browser. You can however guess based on user-agent: https://github.com/nuxt-community/device-module This param allow you to preload a config for SSR rendering, it will distribute your items into all columns evenly.
1<vue-masonry-wall :items="items" :options="{width: 300, padding: 12}" :ssr="{columns: 2}" @append="append"> 2 <template v-slot:default="{item}"> 3 <div class="item"> 4 <h5>{{item.title}}</h5> 5 <p>{{item.content}}</p> 6 </div> 7 </template> 8</vue-masonry-wall>
For any question or feature request please feel free to create an issue or pull request.
These were features from my original project that I removed for brevity of this package.
I also maintain another project called Vue Horizontal.
At its core, Vue Horizontal is an ultra simple pure vue horizontal layout for modern responsive web with zero dependencies. Vue Horizontal is also an ultra complex code snippet dossier with over 100 SPA/SSR/SSG friendly recipes for your design needs. Do check it out, might be useful for you!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/21 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More