Pre-release component / Layouts
SuperGrid
Intelligent responsive grid layouts with masonry support and auto-placement. Define breakpoints, gaps, and column spans via data-* attributes.
01Features
What makes it Super
Breakpoint columns
Define different column counts per breakpoint. Mobile-first responsive design with intuitive attribute naming.
<div data-az-component="super-grid"
data-az-cols="1"
data-az-cols-sm="2"
data-az-cols-md="3"
data-az-cols-lg="4">
Masonry layout
Pinterest-style masonry with automatic height calculation. CSS-only implementation with JavaScript fallback for older browsers.
<div data-az-layout="masonry"
data-az-masonry-balance="true"
data-az-masonry-gap="24">
Item spanning
Items can span multiple columns and rows. Feature cards, hero sections, and complex layouts without custom CSS.
<div data-az-span="2"
data-az-span-md="3"
data-az-row-span="2">
Featured Card
</div>
Responsive gaps
Different gap sizes per breakpoint. Row and column gaps can be set independently.
<div data-az-gap="16"
data-az-gap-md="24"
data-az-gap-lg="32"
data-az-row-gap="24"
data-az-col-gap="16">
Auto-fit & auto-fill
Automatic column sizing based on content. Set minimum and maximum column widths.
<div data-az-auto="fit"
data-az-min-col="280px"
data-az-max-col="1fr">
Named regions
CSS Grid template areas via data attributes. Complex dashboard layouts without writing CSS.
<div data-az-areas="header header"
"sidebar main"
"footer footer">
<nav data-az-area="header"></nav>
<aside data-az-area="sidebar"></aside>
</div>
02Usage
Complete example
A responsive card grid with featured items spanning multiple columns.
<div
data-az-component="super-grid"
data-az-cols="1"
data-az-cols-sm="2"
data-az-cols-lg="4"
data-az-gap="24"
data-az-gap-lg="32">
<!-- Featured item spans 2 columns -->
<article data-az-span="1" data-az-span-lg="2">
<h3>Featured Article</h3>
</article>
<!-- Regular items -->
<article>Card 1</article>
<article>Card 2</article>
<!-- Full-width item -->
<article data-az-span="full">
<h3>Full Width Banner</h3>
</article>
<article>Card 3</article>
<article>Card 4</article>
</div>
Ready for flexible layouts?
SuperGrid is part of the AZ UI Kit, which is not yet published. Request a briefing to ask about early access.