# FAQ, grouped

- **[Sections](/blocks/)**
- **[FAQ](/blocks/faq/)**
- **FAQ, grouped**

Questions organised under named topics (billing, setup, privacy). Each topic is a labelled row with its own accordion beside it.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/faq-grouped
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/faq-grouped';
  ```

Also called

- faq/grouped

- **About**: Questions organised under named topics (billing, setup, privacy). Each topic is a labelled row with its own accordion beside it. Use when you have more than eight questions.
- **Category**: The questions people ask before they buy. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A long help section sorted under named topics such as billing or privacy, each topic a labelled row with its own accordion. Worth it from about nine questions; for fewer, `faq-list` is lighter.
- **Writing for it**: - A group name holds 60 characters and works as a h3 label in a 14rem-wide side column, so use one or two words like 'Billing'.
- The optional summary (120) sits under the name as a one-line promise of what the group covers; leave it empty and the line is simply not drawn.
- Plan two to four groups with one to six questions each. Those are the schema limits, and a group with a single question looks thin next to a full one.
- **Watch out for**: The block caps out at four groups of six, so 24 questions in total; a fifth topic cannot be added and has to be merged into an existing one. In the editor all answers show open, so check the closed state in a preview.

## Pairs well with

- **[Pricing, comparison table](/blocks/pricing/comparison)**
- **[Contact, channels](/blocks/contact/channels)**
- **[Call to action, minimal](/blocks/cta/minimal)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import FaqGrouped from '@/components/klarhimmel/blocks/faq-grouped';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FaqGrouped props={{
          "eyebrow": "Section name",
          "title": "Say what the groups of answers cover",
          "description": "Say in one sentence what to do if the answer is not here, and who replies.",
          "groups": [
            {
              "name": "First group",
              "summary": "Say what the group covers",
              "items": [
                {
                  "question": "Ask a question customers have",
                  "answer": "Answer in one or two plain sentences, with the key fact first, then what to do or where to go next."
                },
                {
                  "question": "Ask a question customers have",
                  "answer": "Answer in one or two plain sentences, with the key fact first, then what to do or where to go next."
                }
              ]
            },
            {
              "name": "Second group",
              "summary": "Say what the group covers",
              "items": [
                {
                  "question": "Ask a common question",
                  "answer": "Answer in one or two plain sentences, with the key fact first, then what to do or where to go next."
                },
                {
                  "question": "Ask a question customers have",
                  "answer": "Answer in one or two plain sentences, with the key fact first, then what to do or where to go next."
                }
              ]
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **groups**: List of 2 to 4. Each item: name, summary, items.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/faq/columns)

[Next](/blocks/faq/accordion)
