Grouped FAQ Columns
FAQ split into two labelled groups, each its own independent accordion of ruled questions, so a long list stays scannable by topic. Closes with a muted response-time note beside an outline pill-shaped call to action.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/grouped-faq-columns.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/faq/faq81.tsx instead.
Usage
The file also exports faq81Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Faq81, faq81Demo } from "@/components/blocks/faq/faq81"; export default function Page() { return <Faq81 {...faq81Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "FAQ" | Small label above the heading. |
| heading | string | "Questions, grouped by topic" | Section heading. |
| description | string | none | Supporting copy under the heading. |
| columns | [FaqColumn, FaqColumn] | none | Exactly two labelled columns, each with its own list of question/answer items. |
| responseTimeNote | string | "We typically reply within 4 hours" | Muted text next to the closing CTA. |
| ctaLabel | string | "Contact support" | Label of the closing outline pill button. |
| className | string | none | Extra classes for the outer section element. |
Types
type FaqItem = { question: string; answer: string }; type FaqColumn = { label: string; items: FaqItem[] };
Behavior notes
- Each column keeps its own independent 'which item is open' state; expanding a question in the left column has no effect on the right column and vice versa.
- Only one question per column can be open at a time; both columns start fully collapsed.
- The closing CTA button is a rounded, outline-variant button with no href or onClick, it's a decorative placeholder for a real support flow that would need a backend.
- This is a real 'use client' component; demo props live in the separate faq81.demo.tsx file so the live block preview (rendered from a Server Component) receives real data instead of undefined.
More FAQ Blocks
View all →collapsible-accordion
Collapsible Accordion
Stacked cards with expandable sections, for full-length answers in a compact format.
open-list-layout
Open List Layout
Questions with answers displayed directly below in a simple always-open list.
three-column-grid
Three Column Grid
Q&A pairs arranged in a responsive grid layout, always open.
tabbed-categories
Tabbed Categories
Sidebar navigation with category tabs and an accordion of that category's questions.
searchable-accordion
Searchable Accordion
Search input that filters accordion items in real-time by question and answer text.
grouped-sections
Grouped Sections
FAQs organized into titled sections, each with its own independent accordion below it.