vue3-masonry

Vue3 Masonry component
1,155
Install
npm install vue3-masonry
Latest Version:0.1.11
Vue:3
Last Updated:Dec 14, 2023
Links: GitHub  ·  npm
Maintainer: roy_liu

Vue3-Masonry

Vue3 Masonry component

Installation

npm install vue3-masonry

Usage

<Masonry
:items="itemList"
:column-width="columnWidth"
:columns-num="columnNum"
:gap="10"
>
   <template #default="{item}">
      <img :src="https://raw.githubusercontent.com/roiiiu/vue3-masonry/HEAD/item.url" :width="columnWidth"/>
   </template>
</Masonry>

Props

Name Type Default Description
items Array [] List of items to display
column-width Number 200 Width of each column
columns-num Number 3 Number of columns
gap Number 10 Gap between columns

Version History

Version Released Vue License
0.1.11 ^3.3.0
0.1.10 ^3.3.0
0.1.9 ^3.3.0
0.1.8 ^3.3.0
0.1.7 ^3.3.0