Staaarter

Minimal FAQ

Oversized single-column FAQ accordion with generous spacing.

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 dependencies and any missing npm packages, and installs them straight into your project.

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

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

Usage

The file also exports faq71Demo, 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 { Faq71, faq71Demo } from "@/components/blocks/faq/faq71";

export default function Page() {
  return <Faq71 {...faq71Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneOptional section heading.
descriptionstringnoneOptional supporting copy under the heading.
itemsFaq71Item[]noneOrdered list of questions and answers.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • "use client" because each question is a real accordion trigger that toggles its own answer's visibility in local state.
  • All items start closed (openIndex initialized to null) to keep the minimal, uncluttered first impression the brief calls for.
  • Deliberately has no cards or borders: hairline dividers (divide-y) and generous vertical padding are the only structure, matching the 'minimal' brief.
  • Question text is oversized (text-xl/text-2xl) relative to other FAQ blocks in this category, per the brief's 'large text size for questions'.