What is included?
All interactive demos and copy-ready code.
Click summary to toggle.
If you searched css accordion without javascript or tabs css, details/summary gives free expand/collapse; tabs need role=tablist and [hidden] panels with minimal JS or radio hack.
No JS required for simple FAQ sections.
All interactive demos and copy-ready code.
Click summary to toggle.
details {
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 0.75rem 1rem;
}
summary { font-weight: 600; cursor: pointer; }Horizontal tabs with active underline.
Visual tab bar (static demo).
.tablist { display: flex; gap: 0.5rem; border-bottom: 2px solid #e2e8f0; }
.tab[aria-selected="true"] { border-bottom: 2px solid #4f46e5; color: #4f46e5; }Transform summary marker with details[open].
Ships in 2–5 business days.
Chevron rotates when open.
details[open] summary .chevron { transform: rotate(180deg); }