Magoo Component UI logo Magoo Component UI
← Catalog

Load-more Grid

load-more-grid organism experimental

A responsive card grid that shows a first batch of items and reveals more, a step at a time, from a Load more button.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Welcome

Introduction

A quick tour of everything you can build.

Property

Home tour

Inside a bright modern build.

AllShown

Props

NameTypeReq
items array ✓
initial enum (3 | 6 | 9 | 12)
step enum (3 | 6 | 9)
gap enum (default | none | sm | md | lg | xl)
button_label string
label string

Related components

How to use

The reveal is wired by behavior.js reading two data-* attributes on the section: data-initial (set from the initial prop) is how many cards show before any interaction, and data-step (from the step prop) is how many each Load more click reveals. On init every item past the initial count gets the hidden attribute; each click removes hidden from the next step of cards and focuses the first newly revealed card's link. When no hidden items remain — or when the item count is already at or below initial — the button itself is given the hidden attribute so it drops out. The portable self-init passes no props object, so all config must be read from the data-* attributes.

Use cases

grid WCAG AA SEO 30 dir: both ai-generated