Staaarter

FAQ with Contact Aside

An accordion of studio FAQs paired with a bordered aside card inviting a direct conversation.

By Staaarter Team
FAQ
Docs
Live preview

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/faq-with-contact-aside.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/faq/faq78.tsx instead.

Usage

The file also exports faq78Demo, 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 { Faq78, faq78Demo } from "@/components/blocks/faq/faq78";

export default function Page() {
  return <Faq78 {...faq78Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"FAQ"Small label above the heading.
headingstring"Studio questions"Section heading.
descriptionstringnoneSupporting copy under the heading.
itemsFaqItem[]noneQuestions rendered as a single-open-at-a-time accordion in the main column.
asideHeadingstring"Still deciding?"Heading inside the bordered aside card.
asideDescriptionstringnoneOne line of copy inside the aside card.
asideCtaLabelstring"Start a conversation"Label of the aside card's full-width button.
classNamestringnoneExtra classes for the outer section element.

Types

type FaqItem = { question: string; answer: string };

Behavior notes

  • The main accordion allows only one item open at a time; the first question is expanded by default and clicking the open question collapses it.
  • The aside is a static border border-border rounded-2xl card that never collapses or changes; it doesn't respond to which FAQ item is open.
  • The aside's 'Start a conversation' button has no href or onClick, it's an inert placeholder for a real contact flow that would need a backend.
  • This is a real 'use client' component; demo props live in the separate faq78.demo.tsx file so the live block preview (rendered from a Server Component) receives real data instead of undefined.