FAQ, grouped


Install
npx shadcn add @klarhimmel/faq-groupedDetailsAbout, usage, props and more
Questions organised under named topics (billing, setup, privacy). Each topic is a labelled row with its own accordion beside it.
Import
Import
- 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.
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Section name' | Text, up to 60 characters. |
title | string | 'Say what the groups of answers cover' | Text, up to 120 characters. |
description | string | 'Say in one sentence what to do if t…' | Text, up to 300 characters. |
groups | { name, summary, items }[] | 3 items | List of 2 to 4. Each item: name, summary, items. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |