Dynamic Masonry Layout For Vue – flex-waterfall

flex-waterfall is a Vue.js layout library to generate a dynamic, fluid, Masonry style grid layout for modern web applications.

How to use it:

1. Import and register the component.

import VueFlexWaterfall from 'vue-flex-waterfall';
export default {
  components: {

2. Add the flex-waterfall component to the template.

  style="align-content: center;"
    v-for="(item, index) in items"
    :style="{ height: `${item.h}px` }"
    Item here

3. Default props to config the layout.

height?: number | string;
alignContent?: string;
col?: number | string;
colSpacing?: number | string;
breakAt?: Record<string, number>;
breakByContainer?: boolean;


Dynamic Masonry Layout For Vue - flex-waterfall


v2.2.0 (02/21/2023)

  • vite@4 and dts plugin

v2.1.0 (07/12/2022)

  • add align-content option

v2.0.0 (07/11/2022)

  • migrate to Vue 3

Download Details:

Author: Tsuk1ko

Live Demo: https://tsuk1ko.github.io/vue-flex-waterfall/

Download Link: https://github.com/Tsuk1ko/vue-flex-waterfall/archive/master.zip

Official Website: https://github.com/Tsuk1ko/vue-flex-waterfall

Install & Download:

# Yarn
$ yarn add vue-flex-waterfall

$ npm install vue-flex-waterfall --save

Add Comment