Skip to main content
ALEXY LINK

Tab 05

An editorial tab system built around typography, category hierarchy, and restrained animated navigation.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Tab 05

Tab 05 is a tabs component in the Tab Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 7, 2026.

  • tab
  • tabs
  • editorial tabs
  • category tabs

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: roles tablist, tab, tabpanel; aria-label, aria-selected, aria-controls, aria-labelledby.
  • HTML elements used: button, img.
  • Keyboard keys handled: ArrowLeft, ArrowRight, Home, End.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 640px.
  • The demo imagery is loaded from Unsplash.

React + TypeScript + Tailwind CSS

3 files: Tab05.jsx, Tab05.types.ts, Tab05.tailwind.css

  • Configurable through 5 props: items, value, defaultValue, onValueChange, className.
  • Uses React hooks: useId, useState.
  • ARIA in the markup: roles tablist, tab, tabpanel; aria-label, aria-selected, aria-controls, aria-labelledby.
  • HTML elements used: button, img.
  • Keyboard keys handled: ArrowLeft, ArrowRight, Home, End.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm.
  • The demo imagery is loaded from Unsplash.
View all Tab Components (10)