Skip to content
Klarhimmel UI

FAQ, picture beside

FAQ, picture beside previewFAQ, picture beside preview

Install

npx shadcn add @klarhimmel/faq-picture-beside
DetailsAbout, 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

import Block from '@/components/klarhimmel/blocks/faq-picture-beside';
Also called
  • 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.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import FaqPictureBeside from '@/components/klarhimmel/blocks/faq-picture-beside';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FaqPictureBeside props={{
          "eyebrow": "Section name",
          "title": "Say what the answers cover",
          "description": "Say what to do if the answer is not here, and who replies.",
          "media": {
            "src": "/pictures/photo-desk1.avif",
            "alt": "An open notebook with a pen and pencils on a desk"
          },
          "items": [
            {
              "question": "Ask a question a customer would ask before deciding",
              "answer": "Answer in one or two plain sentences, with the key fact first, then what to do next."
            },
            {
              "question": "Ask a question a customer would ask before deciding",
              "answer": "Answer in one or two plain sentences, with the key fact first, then what to do next."
            },
            {
              "question": "Ask a question a customer would ask before deciding",
              "answer": "Answer in one or two plain sentences, with the key fact first, then what to do next."
            }
          ],
          "primaryAction": {
            "label": "Main action",
            "href": "#contact"
          }
        }} />
      </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.

PropTypeDefaultDescription
eyebrowstring'Section name'Text, up to 60 characters.
titlestring'Say what the answers cover'Text, up to 120 characters.
descriptionstring'Say what to do if the answer is not…'Text, up to 300 characters.
mediaMedia{…}See the type.
items{ question, answer }[]3 itemsList of 1 to 8. Each item: question, answer.
primaryActionLink{…}Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.