Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Infinite masonry with Nuxt
Infinite Masonry Grid with Nuxt is a boilerplate project for building a Pinterest-style infinite-loading masonry grid with Nuxt.js, the Composition API, and the Nuxt Content Module. It takes Markdown content files managed by @nuxt/content and renders them as a responsive masonry layout that loads additional items as the user scrolls. The project runs on Nuxt, a Vue-based framework, and includes standard scripts for development, production builds, and static export. It accompanies a detailed tutorial by Krutie Patel on creating such a grid.
Infinite Masonry Grid with Nuxt is a starter project that demonstrates how to build a Pinterest-like infinite grid using the Nuxt Composition API and the Nuxt Content Module. It reads Markdown files from a local content directory and displays them as a masonry layout with infinite scroll. The project is built on Nuxt and includes scripts for development, production, and static generation.
setup functions) to handle reactive state for scroll-based loading.@nuxt/content to read local Markdown files and expose them as data for the grid.npm run generate to output a fully static site deployable to any hosting service.content directory and the grid picks them up automatically.npm install to install dependencies.npm run dev to start the development server at localhost:3000.content folder; the Composition API tracks scroll position and increments the number of visible items, fetching more as needed.npm run build and npm run start, or npm run generate for static export.The template uses Nuxt with the Composition API and the @nuxt/content module. Styles are written in SCSS. There is no backend or database; all content lives in Markdown files.
Yes, the template is built specifically around the Nuxt Content Module, which lets you manage a local content directory with Markdown, JSON, or YAML files.
Yes, the project includes the npm run generate command to produce a static version that can be hosted on any static host. The README lists it as one of the available scripts.
Add a new Markdown file to the content directory with the required frontmatter fields. The Nuxt Content module will pick it up automatically, and the grid will include it when the next batch loads.
The template was created to accompany an article by Krutie Patel. The article link is included in the README.
