---
title: FAQ Blocks for Astro
description: "Prebuilt Astro FAQ sections for business and product pages. Explore question and answer layouts with expandable content and editable source."
seo:
    title: "Astro FAQ blocks: examples and source"
sidebar:
    label: "FAQs"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
mode: wide
---

## Split

Keep the introduction beside the question list.

```astro
---
import FaqBlock from "@/components/blocks/faqs/faqs-1.astro"
---

<FaqBlock
  title="Choosing a workflow to automate"
  description="Use this gnostic AI example to plan a first pilot with the people who do the work."
  buttons={[
    {
      label: "View the pilot steps",
      href: "/blocks/services#process",
      variant: "default",
    },
    {
      label: "View the inquiry form",
      href: "/blocks/contact#split-form",
      variant: "outline",
    },
  ]}
  faqs={[
    {
      id: "faq-1-1",
      question: "Which task makes a good first pilot?",
      answer:
        "Pick a frequent task with a clear result. Assigning one type of support request to its queue is small enough to test.",
    },
    {
      id: "faq-1-2",
      question: "What should we bring to the first meeting?",
      answer:
        "Bring a sample request, the rule you use to assign it, and one case where the rule fails.",
    },
    {
      id: "faq-1-3",
      question: "Who decides what the pilot should do?",
      answer:
        "Ask the person who owns the queue to define a correct assignment and name someone to review exceptions.",
    },
    {
      id: "faq-1-4",
      question: "How can we tell if it helped?",
      answer:
        "Compare the number of manual transfers before and during the pilot. Check whether requests still reach the right owner.",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-1
```

## Stacked panels

Display questions in native disclosure panels.

```astro
---
import Block from "@/components/blocks/faqs/faqs-stacked-panels.astro"

const content = {
  eyebrow: "gnostic AI · Sample pilot",
  title: "Measuring a support pilot",
  description:
    "Choose a baseline and a review point before the first test run.",
  questions: [
    {
      question: "What should we measure first?",
      answer:
        "Count how many times the team reassigns a ticket before someone takes ownership. Record the same count during the pilot.",
    },
    {
      question: "What would make us pause the pilot?",
      answer:
        "Agree on a stop condition with the queue owner. For example, pause if a test request disappears from both the assigned queue and the review queue.",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-stacked-panels
```

## Centered

Center the introduction above the answers.

```astro
---
import Faqs2Block from "@/components/blocks/faqs/faqs-2.astro"
---

<Faqs2Block
  title="Testing a routing rule"
  description="In this gnostic AI example, a support team tests a rule that assigns new tickets."
  buttons={[
    {
      label: "View the pilot steps",
      href: "/blocks/services#process",
      variant: "default",
    },
    {
      label: "View the inquiry form",
      href: "/blocks/contact#split-form",
      variant: "outline",
    },
  ]}
  faqs={[
    {
      id: "faq-2-1",
      question: "Which tickets should we test?",
      answer:
        "Include a billing question, a setup question, and a message that asks about both. Write down the expected queue for each.",
    },
    {
      id: "faq-2-2",
      question: "What happens when two queues match?",
      answer:
        "Send the request to an intake reviewer. Keep the original message so the reviewer can choose the owner.",
    },
    {
      id: "faq-2-3",
      question: "How do we try the rule before it moves tickets?",
      answer:
        "Record the queue the rule suggests beside the queue the team actually chose. Review the differences together.",
    },
    {
      id: "faq-2-4",
      question: "What should we keep after the pilot?",
      answer:
        "Keep the test tickets, expected assignments, and exceptions. Run them again when the routing rule changes.",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-2
```

## Grouped

Group related questions so readers can find the right topic.

```astro
---
import Faqs3Block from "@/components/blocks/faqs/faqs-3.astro"
---

<Faqs3Block
  badge="gnostic AI · Sample pilot"
  title="Reviewing an AI-drafted reply"
  description="Follow a sample support question from the first draft to an approved response."
  faqs={[
    {
      id: "faq-3-1",
      question: "Where does the answer come from?",
      answer:
        "Give the drafting tool the customer’s question and the current support notes for that product.",
    },
    {
      id: "faq-3-2",
      question: "What does the reviewer see?",
      answer:
        "Show the draft beside the original question and the passages used to write it.",
    },
    {
      id: "faq-3-3",
      question: "What if the notes leave a gap?",
      answer:
        "Flag the missing detail and ask the person responsible for the product. Hold the draft until the reviewer has an answer.",
    },
    {
      id: "faq-3-4",
      question: "Who sends the reply?",
      answer:
        "The support agent checks the details, edits the draft, and sends the approved message through the existing help desk.",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-3
```

## Compact

Keep a short question list in a compact section.

```astro
---
import Faqs4Block from "@/components/blocks/faqs/faqs-4.astro"
---

<Faqs4Block
  title="Invoice intake questions for a gnostic AI pilot"
  faqs={[
    {
      id: "faq-4-1",
      question: "Which fields do we capture?",
      answer:
        "Start with the supplier, invoice number, and total. Keep a link to the original invoice beside the draft record.",
    },
    {
      id: "faq-4-2",
      question: "What if the total is hard to read?",
      answer:
        "Leave the field blank and send the invoice to a reviewer who can check the original.",
    },
    {
      id: "faq-4-3",
      question: "How do we handle duplicates?",
      answer:
        "Compare the supplier and invoice number with existing records. Ask a reviewer to resolve a possible match before posting.",
    },
    {
      id: "faq-4-4",
      question: "Who approves the record?",
      answer:
        "The accounts team checks the draft against the purchase order and uses its usual approval process.",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-4
```

## Image split

```astro
---
import Block from "@/components/blocks/faqs/faqs-image-split.astro"
import { getImage } from "astro:assets"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const content = {
  eyebrow: "gnostic AI · Sample pilot",
  title: "Before a workflow review",
  description:
    "Use a recent customer request to show where your team spends time moving information between tools.",
  image: {
    src: lakeUrl,
    alt: "Mountain ridge beyond a lake",
  },
  tags: ["Intake", "Process mapping"],
  contact: {
    label: "View the project inquiry",
    href: "/blocks/contact#editorial-contact",
    email: "projects@example.com",
    available: "Sample project desk",
  },
  questions: [
    {
      question: "Do we need to prepare a process diagram?",
      answer:
        "A sample request and a short list of steps are enough. Trace one handoff together and sketch what happens next.",
    },
    {
      question: "Can we use sample data?",
      answer:
        "Yes. Keep the fields and decisions that matter to the workflow and replace customer names and account details.",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-image-split
```

## Divided question list

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/faqs/faqs-divided-list/faqs-divided-list.astro"
import type { DividedFaqsContent } from "@/components/blocks/faqs/faqs-divided-list/types"

const content = {
  label: "gnostic AI · Sample pilot",
  title: "Preparing a workflow brief",
  description:
    "Use these two questions to describe a task before you ask for an estimate.",
  button: {
    label: "View the project inquiry",
    href: "/blocks/contact#editorial-contact",
  },
  questions: [
    {
      title: "How much of the process should we describe?",
      description:
        "Start with one handoff. Name the event that starts it, the person who acts, and the result the next person needs.",
    },
    {
      title: "Which example will help explain the problem?",
      description:
        "Include a sample that follows the usual path and one that needs human judgment. Note what the team did in each case.",
    },
  ],
} satisfies DividedFaqsContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-divided-list
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/faqs/faqs-divided-list/types.ts"
    name="DividedFaqsProps"
/>

## Editorial faqs

Use this section for the faqs part of a studio site.

```astro
---
import Section from "@/components/blocks/faqs/faqs-editorial-split/faqs-editorial-split.astro"

const section = {
  label: "gnostic AI · Sample pilot",
  title: "What changes",
  accent: "after the pilot?",
  faqs: [
    {
      question: "Who owns the workflow after the pilot?",
      answer:
        "Name a team member who can change the rule, review exceptions, and pause it if assignments go to the wrong queue.",
    },
    {
      question: "How do we test a change later?",
      answer:
        "Run the revised rule on the saved test requests. Compare the new assignments with the expected ones before turning it on.",
    },
  ],
}
---

<Section {...section} />
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-editorial-split
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/faqs/faqs-editorial-split/types.ts"
    name="FaqsEditorialSplitProps"
/>

See [serif accent font setup](/ui/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Bordered disclosures

```astro
---
import Block from "@/components/blocks/faqs/faqs-bordered-disclosures/faqs-bordered-disclosures.astro"

const content = {
  eyebrow: "gnostic AI · Sample pilot",
  title: "When a request needs a person",
  description: "Define the exceptions for a sample intake workflow.",
  questions: [
    {
      title: "What if a request has no account number?",
      description:
        "Save the request in the review queue and flag the missing field. Keep the original message attached.",
    },
    {
      title: "How does a corrected request get moving again?",
      description:
        "The reviewer adds the account number to the same record and runs the assignment step again.",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/faqs-bordered-disclosures
```

## Choose a faqs layout

Choose an FAQ block for specific questions that remain after the main explanation. Keep essential pricing or service terms in visible page content as well.

## Pass content from Astro

Pass stable IDs, questions, and answers in the faqs array. Use the optional buttons for support or further details. The block receives content; it does not generate answers or add a support service.

## Responsive layout and images

Check long questions, expanded answers, and keyboard use on a phone. Disclosure controls need visible focus and a usable target size. These sections are primarily text; images inside answers should explain a step and fit the panel width.

## Compose the next section

Place the FAQ near [Pricing](/ui/blocks/pricing), [Services](/ui/blocks/services), or [Contact](/ui/blocks/contact) according to the questions it resolves.
