Application UIView source

Tabs

Related content, neatly organized. Full keyboard navigation included.

Installation

Run the source CLI from a Blocks UI checkout. This package is not published to npm.

node packages/cli/index.js add tabs

Or 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="tabs">
  <div><div>Overview</div><div><h3>One implementation. Every website.</h3><p>Use semantic content, shared design tokens, and small ES modules to build your next website.</p><a class="button-secondary" href="#get-started">Get started</a></div></div>
  <div><div>Installation</div><div><h3>Copy. Customize. Ship.</h3><p>Install the source from the registry or copy the HTML, CSS, and JavaScript files. There is no framework to adopt.</p></div></div>
  <div><div>Compatibility</div><div><h3>Native by design.</h3><p>Standalone verified, EDS markup compatible. Use your existing AEM loader when integrating into EDS.</p></div></div>
</div>
import decorate from './blocks/tabs/tabs.js';
document.querySelectorAll('.tabs').forEach(decorate);

Variants

Choose a variant in the live preview. Add its class to the authored block.

default

Accessibility & behavior

Use Left and Right Arrow to move between tabs. Home and End reach the first and last tab. Each panel is linked to its tab and hidden when inactive.

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.

Compatibility

Standalone verified. EDS markup compatible. Live AEM integration has not been verified.

Edit this example on GitHub

Search documentation

Search the docs, components, and blocks. Use Tab to select a result.