FAQ, picture beside


Install
npx shadcn add @klarhimmel/faq-picture-besideDetailsAbout, usage, props and more
A header on top, then a tall rounded picture on the left and a ruled list of questions that open to show the answer on the right, with one action under the list.
Import
Import
- faq/picture-beside
- About
- A header on top, then a tall rounded picture on the left and a ruled list of questions that open to show the answer on the right, with one action under the list. On a phone the picture sits above the list.
- 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 one tall picture helps the reader trust the answers, such as the place, the team or the product, and the list is short. The header runs across the top, the picture sits left, the accordion and one action right. For no picture use faq-list; for a picture over the whole band use faq-banner-list.
Writing for it
- Title up to 120 characters, lead up to 300, one to eight questions of 140 characters or fewer. - Answers up to 400 characters, since the right column is narrow.
Watch out for
The picture is portrait at four by five, so a landscape photo gets cropped at its sides. On a phone it stacks above the list and takes a full screen of height, so keep the list short.
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 what to do if the answer is not…' | Text, up to 300 characters. |
media | Media | {…} | See the type. |
items | { question, answer }[] | 3 items | List of 1 to 8. Each item: question, answer. |
primaryAction | Link | {…} | Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |