Skip to content
Viewership Inquire
Astro UI

FAQ Accordion.

A centred column of expandable question cards on native details, with FAQPage structured data.

ConversionSectionNo dependencies Original, MIT

.md

Questions, answered.

What does the repair promise cover?

Stitching, zips, seam tape and fabric patches on anything we made, for as long as you own it.

How long does a repair take?

Two working days on average once the pack reaches the bench, plus shipping both ways.

Do you ship outside the United States?

Yes, to Canada and the UK today. Duties are shown at checkout.

Can I return something I have used?

Within 60 days, yes. Tell us what did not work and we will take it back.

Style

Using Claude Code? Give it the agent prompt and skip these steps.

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy FaqAccordion.astro

    Paste into src/components/viewership/faq-accordion/

  3. Use it

    Page.astro
    ---
    import FaqAccordion from "../components/viewership/faq-accordion/FaqAccordion.astro";
    ---
    
    <FaqAccordion />

Props 7

PropTypeDefaultDescription
title string · Section headline.
accent string · Closing words of the headline.
intro string · Supporting paragraph.
items { q: string; a: string }[] · Questions and plain-text answers.
openFirst boolean true Open the first question on load.
schema boolean true Emit FAQPage JSON-LD.
as "h2" | "h3" "h2" Heading element.

Source 1 file

Original, MIT.