Skip to main content
ALEXY LINK

Accordion 10

A structured knowledge-base accordion with one accessible nested disclosure level and responsive information hierarchy.

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 Accordion 10

Accordion 10 is an accordion component in the Accordion Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 8, 2026.

  • accordion
  • nested accordion
  • knowledge accordion

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: aria-expanded, aria-controls, aria-labelledby.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

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

  • Configurable through 8 props: items, section, defaultSection, onSectionChange, openNested, defaultOpenNested, onOpenNestedChange, className.
  • Uses React hooks: useId, useState.
  • ARIA in the markup: aria-expanded, aria-controls, aria-labelledby.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm.
View all Accordion Components (10)