FAQ With Contact
A numbered FAQ accordion paired with a bordered contact card in the aside, showing a portrait, a short prompt, and a contact CTA for questions the FAQ doesn't answer.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/faq-with-contact.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/faq/faq69.tsx instead.
Usage
The file also exports faq69Demo, 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 { Faq69, faq69Demo } from "@/components/blocks/faq/faq69"; export default function Page() { return <Faq69 {...faq69Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge | string | none | Small eyebrow label above the heading. |
| heading | string | none | Section heading. |
| description | string | none | Section intro text. |
| items | FaqItem[] | none | Numbered questions rendered in the main accordion column. |
| contactImage | MediaSlotImage | none | Portrait shown at the top of the contact card. |
| contactPrompt | string | none | Short line of copy inside the contact card. |
| contactButtonLabel | string | "Contact us" | Label on the inert contact button. |
| className | string | none | Extra classes for the outer section element. |
Types
type FaqItem = { question: string; answer: string; };
Behavior notes
- "use client" because the main column is a real accordion holding local open-index state.
- Questions are numbered 01, 02, etc. in the order supplied; the numbering is purely visual and doesn't affect which item opens first.
- The aside contact card sticks to the viewport (lg:sticky lg:top-24) while the accordion scrolls beside it on large screens.
- The contact button is inert by design: there is no backend to send a message to, so clicking it does nothing.
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.