Present frequently asked questions grouped by category: animated category pills switch between accordion lists.
Web development is the process of building and maintaining websites — client-side and server-side programming, database management, and related technologies.
An approach that makes web pages render well on a variety of devices and screen sizes.
UI design covers the visual elements of a digital product; UX design covers the overall feel and functionality.
Writing text for advertising or marketing that persuades the reader to take a particular action.
| Name | Type | Default | Description |
|---|---|---|---|
title | string | "FAQs" | Section heading |
subtitle | string | — | Gradient eyebrow above the heading |
categories | object | — | Category key → pill label |
faqData | object | — | Category key → array of {question, answer} |
| Variant | Proven in | Live at | Date |
|---|---|---|---|
default | 21st.dev — @vaib215 "FAQ tabs" (external assimilation) | 21st.dev | 2026-08-08 |
packages/og-faq-section.css
▾
<link rel="stylesheet" href="og-faq-section.css">
<section class="og-faq">
<header class="og-faq__header">
<span class="og-faq__eyebrow">Let's answer some questions</span>
<h2 class="og-faq__title">Frequently Asked Questions</h2>
</header>
<div class="og-faq__tabs" role="tablist">
<button class="og-faq__tab" role="tab" aria-selected="true"
aria-controls="faq-cat-1"><span>Category</span></button>
</div>
<div class="og-faq__panel" id="faq-cat-1" role="tabpanel">
<div class="og-faq__item">
<button class="og-faq__q" aria-expanded="false">Question…</button>
<div class="og-faq__a"><div><p>Answer…</p></div></div>
</div>
</div>
</section>
<!-- behavior script: see packages/og-faq-section.html -->