Staaarter

Launch FAQ Accordion

A centered, expandable FAQ list answering the questions visitors are most likely to ask about an upcoming launch (timing, waitlist perks, pricing, migration, support). Clicking a question expands its answer and collapses whichever other answer was open, keeping the list compact.

By Staaarter Team
Coming Soon
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/launch-faq-accordion.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/coming-soon/comingsoon13.tsx instead.

Usage

The file also exports comingsoon13Demo, 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 { ComingSoon13, comingsoon13Demo } from "@/components/blocks/coming-soon/comingsoon13";

export default function Page() {
  return <ComingSoon13 {...comingsoon13Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"Coming soon"Small label above the heading.
headingstring"Launch FAQ"Section heading.
descriptionstring"Answers to the questions we hear most..."Section subheading.
faqsFaqItem[]noneFAQ entries to render; the first one is open by default.
classNamestringnoneExtra classes for the outer section element.

Types

export interface FaqItem {
  id: string;
  question: string;
  answer: string;
}

Behavior notes

  • "use client". Real interactivity: a single `useState<string | null>` tracks which one FAQ id is open, so expanding one question collapses any other that was open (single-open accordion, not independent toggles). The first FAQ is open on initial render, computed inline from props rather than derived in an effect.