Editorial Two-Column FAQ
A two-column editorial FAQ pairing a sticky eyebrow, oversized heading, short note, and contact CTA on the left with a ruled, index-marked accordion of questions on the right.
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/editorial-two-column-faq.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/faq/faq76.tsx instead.
Usage
The file also exports faq76Demo, 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 { Faq76, faq76Demo } from "@/components/blocks/faq/faq76"; export default function Page() { return <Faq76 {...faq76Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small uppercase label above the heading. |
| heading | string | none | Oversized editorial heading. |
| note | string | none | Short muted note under the heading. |
| ctaLabel | string | "Contact us" | Label on the contact CTA button. |
| ctaHref | string | none | If set, the CTA renders as a link to this path. |
| items | Faq76Item[] | none | Ordered list of questions and answers. |
| className | string | none | Extra classes for the outer section element. |
Types
type Faq76Item = { question: string; answer: string; };
Behavior notes
- "use client" because the right column is a real accordion: clicking a question toggles its own answer in local state.
- The left column (eyebrow, heading, note, CTA) sticks to the viewport (lg:sticky lg:top-24) while the accordion scrolls beside it on large screens.
- The CTA renders as a plain button when no ctaHref is passed, or as a Link-backed button when one is; either way it performs no real contact action here.
- Each accordion row shows a small numeric index mark derived from its array position, with hairline rules (divide-y) separating rows instead of cards or borders.
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.