Skip to content

Faq Tabs

FAQ grouped by topic with text tabs (Radix Tabs) underlined in ink when active, and each topic’s answers as a ruled definition list.

mono-clean/section/faq-tabs
Open ↗

Source

"use client";

import { Tabs } from "radix-ui";
import { cn } from "@/lib/utils";

export interface FaqTabsProps {
  title?: string;
  topics?: { id: string; label: string; items: { q: string; a: string }[] }[];
  className?: string;
}

const DEFAULT_TOPICS = [
  {
    id: "product",
    label: "Product",
    items: [
      { q: "How many templates are there?", a: "48, each designed by a working studio, with new ones every month." },
      { q: "Can I mix layouts?", a: "Yes — pick a different layout per project or even per section." },
    ],
  },
  {
    id: "billing",
    label: "Billing",
    items: [
      { q: "Can I pay monthly?", a: "Yes. Yearly billing saves 20%." },
      { q: "Do you invoice with VAT?", a: "Invoices include your VAT number and are available in your account." },
    ],
  },
  {
    id: "domains",
    label: "Domains",
    items: [
      { q: "Can I buy a domain through Frame?", a: "Not yet — connect any domain from your registrar in a few steps." },
      { q: "Is SSL included?", a: "Always, renewed automatically." },
    ],
  },
];

/** FAQ grouped by topic with text tabs (Radix Tabs) underlined in ink when active, and each topic’s answers as a ruled definition list. */
export function FaqTabs({ title = "Help", topics = DEFAULT_TOPICS, className }: FaqTabsProps) {
  return (
    <section aria-labelledby="mc-ft-title" className={cn("da-section bg-da-bg text-da-fg", className)}>
      <div className="da-container">
        <h2 id="mc-ft-title" className="font-da-display text-[clamp(2rem,4vw,3rem)] leading-none font-medium tracking-da-display">
          {title}
        </h2>
        <Tabs.Root defaultValue={topics[0]?.id} className="mt-10">
          <Tabs.List aria-label="Topics" className="flex gap-8 border-b border-da-border">
            {topics.map((t) => (
              <Tabs.Trigger
                key={t.id}
                value={t.id}
                className="da-focus -mb-px border-b-2 border-transparent pb-3 font-da-mono text-xs tracking-da-label text-da-muted-fg uppercase hover:text-da-fg data-[state=active]:border-da-fg data-[state=active]:text-da-fg"
              >
                {t.label}
              </Tabs.Trigger>
            ))}
          </Tabs.List>
          {topics.map((t) => (
            <Tabs.Content key={t.id} value={t.id} className="da-focus">
              <dl>
                {t.items.map((it) => (
                  <div key={it.q} className="grid gap-2 border-b border-da-border py-6 md:grid-cols-2 md:gap-10">
                    <dt className="text-lg font-medium">{it.q}</dt>
                    <dd className="text-da-muted-fg">{it.a}</dd>
                  </div>
                ))}
              </dl>
            </Tabs.Content>
          ))}
        </Tabs.Root>
      </div>
    </section>
  );
}

export default FaqTabs;

modules/mono-clean/section/faq-tabs/index.tsx

Props

PropTypeDefaultDescription
titlestring—Heading.
topics{ id: string; label: string; items: { q: string; a: string }[] }[]—Topics.
classNamestring—Extra classes on the root.

Other faq variants in Mono Clean

FAQ in other art directions

FAQ Accordion

Two-column FAQ: sticky title + support CTA on the left, numbered accordion cards on the right with a yellow plus that rotates into an ink cross when open. Built on Radix Accordion.

BrutalistFAQ

FAQ Categories

Help-center style FAQ: topic buttons with counts on the left (stacked on desktop, wrapped on mobile), and a ruled accordion on the right whose open question floods yellow.

BrutalistFAQ

FAQ Grid

Always-open FAQ grid: ruled cells (1/2/3 columns) with a yellow question-mark square, uppercase question and answer, closed by a full-width ink contact row. No interaction needed.

BrutalistFAQ

FAQ Search

Searchable FAQ: a huge ruled search field that presses in on focus, live result count, and native <details> cards with tags; a pink empty state points to support.

BrutalistFAQ

Faq Cards

All-open FAQ: a 3-column grid of glass cards, each with a gradient number badge, question and answer, followed by a glass contact pill with an ink button.

GlassFAQ

Faq Chat

FAQ as a chat: suggested question chips on the left; picking one adds a gradient user bubble and, after a typing indicator, a glass answer bubble in the conversation panel.

GlassFAQ

FAQ Glass

Centered FAQ with stacked frosted accordion cards; the plus button spins into a gradient cross with a slight overshoot and answers expand smoothly. Built on Radix Accordion.

GlassFAQ

Faq Search

Help-center FAQ: large glass search pill filtering a frosted Radix accordion live, with category tags, result count and highlighted matches; empty state.

GlassFAQ

Faq Grid

All answers visible at once: a three-column grid of short questions and answers under a header, followed by two support link cards (documentation, talk to us).

MinimalFAQ

Faq List

Centered single-column FAQ built on native details/summary (zero JS): hairline dividers, a plus icon that rotates into a cross when open, and a contact line underneath.

MinimalFAQ

FAQ Split

Two-column FAQ: title, description and support link on the left, hairline-divided Radix accordion on the right with a rotating chevron and a smooth height + fade expand.

MinimalFAQ

Faq Tabs

FAQ grouped by category behind an underline tab bar (Radix Tabs, with counts); the active category shows every question and answer in a two-column definition list.

MinimalFAQ

Faq Accordion

Two-column FAQ: heading + description + contact link on the left, bordered Radix accordion with plus icons rotating to × on the right.

Neo CorporateFAQ

Faq Security

Security & compliance FAQ: dark-tinted certification cards (SOC 2, ISO 27001, GDPR, PCI) with shield icons, then security questions as native <details> disclosure rows.

Neo CorporateFAQ

Faq Sidebar

Help-center style FAQ: a vertical category nav (left, becomes horizontal scroll chips on mobile) and the selected category’s questions as an open definition list.

Neo CorporateFAQ

Faq Support

Compact 2×3 grid of short Q&As followed by three bordered support channel cards (docs, chat, dedicated support).

Neo CorporateFAQ

Faq Columns

Editorial FAQ: serif title and intro in a narrow left column, questions as a two-column definition list on the right separated by warm hairlines.

Organic SoftFAQ

Faq Contact

FAQ beside a contact card: native disclosure list on the left, and a clay-tinted card with a sprouting-leaf illustration, email and chat buttons on the right.

Organic SoftFAQ

Faq Search

Searchable FAQ: rounded search field plus topic pills filter a list of questions (native details), with a friendly empty state and live result count.

Organic SoftFAQ

Faq Soft

Soft accordion: each question is its own rounded paper pill-card that turns sage when open, with a round plus that rotates into a cross; generous spacing.

Organic SoftFAQ

Faq Columns

All-visible FAQ: sticky intro with a peach “Chat with us” pill on the left, six Q&As in a 2-column grid with round lavender number badges on the right.

Soft FlatFAQ

Faq Help

Help-center FAQ: lavender panel with a friendly greeting, big white search pill and popular-search chips; matching answers show as white cards with a peach empty state.

Soft FlatFAQ

Faq Pills

Single-column FAQ of rounded white blocks on native details/summary; the open item turns lavender and its round chevron button flips and fills periwinkle.

Soft FlatFAQ

Faq Tinted

FAQ by topic: three big pastel topic buttons (emoji + label) switch the list of white Q&A cards below, which fades in on change.

Soft FlatFAQ