Introducing masonry-gridlanes-wc: a native-first masonry web component

“Introducing masonry-gridlanes-wc: A Native-First Masonry Web Component” title with author photo, npm install @schalkneethling/masonry-gridlanes-wc command, and HTML and JS code snippets.

Schalk Neethling created a web component that provides masonry layouts aligned with display: grid-lanes from the CSS Grid Level 3 spec. In browsers that support native grid lanes, it steps aside entirely. Otherwise, it uses a JavaScript fallback for column and row masonry packing with configurable gaps and column widths.

schalkneethling.com/posts/introducing-masonry-gridlanes-wc-a-native-first-masonry-web-component