ArekUI
Docs

Tabs & Accordion

Tab groups and accordions with proper aria semantics - expand a panel with a single attribute.

Accordion = native <details> + <summary> inside ar-accordion. Default allows multiple panels open; add data-ar-exclusive on the container for one-at-a-time.

Tabs
Panel one content.

Accordion (multiple open)

Accordion (multiple open)
What is ArekUI?
A dependency-free CSS framework extracted from a real design system.
Does it need a build step?
No. Link arekui.css and go.
How do I theme it?
Set data-theme="light", "dark", "neo", "pixel" or "brutalist" on <html>.

Accordion (exclusive)

Accordion (exclusive)
Only one panel stays open
Opening another summary closes the previous one.
Second panel
Enabled by data-ar-exclusive on the container.
Third panel
Without the attribute, any number of panels can be open.

Options

NameType / valuesDefaultMeaning
data-ar-tab="panel id"attribute on each button—Panel that button brings to the front.
data-ar-tabs-panel="attr"attribute on .ar-tabs—Name of the attribute that marks the panels (data-ar-panel here).
ar-tab-activeclass—Selected tab; the script also writes role, aria-selected and the roving tabindex.
ArrowLeft / ArrowRight / Home / Endkeys—Move and activate inside the tablist.
data-ar-exclusiveattribute on .ar-accordion—Accordion: opening a panel closes the one above it.