Feature grid
The important details, at a glance. A responsive grid of capabilities.
<div class="feature-grid">
<div><div><h3>Native web standards</h3><p>Semantic HTML, scoped CSS, and small ES modules. Nothing between you and the platform.</p></div></div>
<div><div><h3>Accessible foundations</h3><p>Keyboard interactions, meaningful structure, and visible focus states built in.</p></div></div>
<div><div><h3>Your source code</h3><p>Copy each file into your project. Customize freely, without fighting an abstraction.</p></div></div>
<div><div><h3>Any content source</h3><p>Use static HTML or EDS row-and-column content. Keep one block implementation.</p></div></div>
</div>.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); overflow: clip; }
.feature-grid-item { padding: 2rem; background: var(--background); }
.feature-grid-item:nth-child(3n) { background: var(--muted); }
.feature-grid h3 { margin-top: 0; }
.feature-grid p { font-size: 14px; color: var(--muted-foreground); margin-bottom: 0; }
@media (width < 640px) { .feature-grid { grid-template-columns: 1fr; } }export default function decorate(block) {
[...block.children].forEach((row) => row.classList.add('feature-grid-item'));
}Installation
Run the source CLI from a Blocks UI checkout. This package is not published to npm.
node packages/cli/index.js add feature-gridOr copy the source files above. Include tokens.css and base.css once in your project.
Usage
Use the authored row-and-column structure, then let the standalone runtime discover and enhance the block.
<div class="feature-grid">
<div><div><h3>Native web standards</h3><p>Semantic HTML, scoped CSS, and small ES modules. Nothing between you and the platform.</p></div></div>
<div><div><h3>Accessible foundations</h3><p>Keyboard interactions, meaningful structure, and visible focus states built in.</p></div></div>
<div><div><h3>Your source code</h3><p>Copy each file into your project. Customize freely, without fighting an abstraction.</p></div></div>
<div><div><h3>Any content source</h3><p>Use static HTML or EDS row-and-column content. Keep one block implementation.</p></div></div>
</div>import decorate from './blocks/feature-grid/feature-grid.js';
document.querySelectorAll('.feature-grid').forEach(decorate);Variants
Choose a variant in the live preview. Add its class to the authored block.
defaultAccessibility & behavior
Semantic HTML, visible focus states, shared contrast-aware tokens, and responsive styles provide an accessible foundation. Preserve labels and heading hierarchy when customizing.
Multiple instances are supported. Layouts adapt to smaller viewports. No npm dependencies are required at runtime.
AEM usage
Copy the canonical CSS and JavaScript into your EDS block folder. Use the same row-and-column authoring structure shown above and let your existing AEM loader call the default decorator.
Standalone verified. EDS markup compatible. Live AEM integration has not been verified.