Skip to content
BaseLayer Themes

Docs

FAQ02

Accordion FAQ with open/close state

Live preview

Frequently asked questions

Tap a question to reveal the answer.

BaseLayer themes are premium Astro marketing themes with config-driven sections, work case studies, blog, SEO stack, and full documentation on this site.

All documentation lives at baselayerthemes.com/docs — install guides, site config reference, components, and deploy instructions.

Yes. Personal and client use is included with every theme license.

File: src/blocks/faq/FAQ02.astro

Accordion FAQ — tap a question to reveal the answer. Supports chevron or plus/minus icons and initial open state.

Config

Heading/layout/behavior from blocks.tsfaq02. Items from integrations.tsaeo.faq (shared with FAQ01 / FAQ schema).

// blocks.ts
faq02: {
  width: "narrow",
  heading: "Frequently asked questions",
  subheading: "Tap a question to reveal the answer.",
  iconStyle: "chevron", // "chevron" | "plus-minus"
  initialState: "first-open", // "closed" | "open" | "first-open"
},

Add to a page

---
import FAQ02 from "@/blocks/faq/FAQ02.astro";
---

<FAQ02 />

Inline override:

<FAQ02
  iconStyle="plus-minus"
  initialState="closed"
  items={[
    { question: "Can I self-host?", answer: "Yes — static output deploys anywhere." },
  ]}
/>

Props

Prop Config key Notes
sectionId Default "faq" (pass a unique id if both FAQ01 and FAQ02 are on one page)
width faq02.width
heading faq02.heading
subheading faq02.subheading
items aeo.faq { question, answer }[]
iconStyle faq02.iconStyle "chevron" | "plus-minus"
initialState faq02.initialState "closed" | "open" | "first-open"

← FAQ versions · Blocks overview