FAQ, banner and list


Install
npx shadcn add @klarhimmel/faq-banner-listDetailsAbout, usage, props and more
A wide picture band with the label, heading, lead and one action over its lower left, and a narrow ruled list of questions that open to show the answer beneath it.
Import
Import
- faq/banner-list
- About
- A wide picture band with the label, heading, lead and one action over its lower left, and a narrow ruled list of questions that open to show the answer beneath it. On a phone the band keeps its shape and the list stays one column.
- Category
- The questions people ask before they buy. New project? Set it up once: /get-started/installation.
Notes
When to use it
Pick it when the questions need a photographic opening: a full-width picture band carries the label, heading, lead and one action, and a narrow ruled accordion follows. For a plain heading over the list use faq-list; for a picture beside the list use faq-picture-beside.
Writing for it
- Title up to 120 characters, lead up to 240, one action with a label of 40 or fewer. - One to ten questions of 140 characters or fewer, answers up to 600.
Watch out for
The picture is darkened by half, so a pale or busy photo still needs a plain focal area at the lower left where the text sits. Leave the picture empty only while drafting.
Pairs well with
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 answers cover' | Text, up to 120 characters. |
description | string | 'Say in one sentence what to do if t…' | Text, up to 240 characters. |
media | Media | {…} | See the type. |
primaryAction | Link | {…} | Optional; empty is not rendered. |
items | { question, answer }[] | 4 items | List of 1 to 10. Each item: question, answer. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |