interface FAQProps {
    buttonHref?: string;
    buttonText?: string;
    expandedState: boolean[];
    faqItems: FAQItem[];
    onExpandedStateUpdate: ((expandedState) => void);
    onNavigate?: ((url) => void);
    screenMode: "desktop" | "mobile";
    subtitle: string;
    title: string;
}

Properties

buttonHref?: string

URL for the call to action button

buttonText?: string

Text for the call to action button

expandedState: boolean[]

Current state of which items are expanded (by index)

faqItems: FAQItem[]

Each question/answer item to display in the FAQ

onExpandedStateUpdate: ((expandedState) => void)

Callback when an item is expanded

Type declaration

    • (expandedState): void
    • Callback when an item is expanded

      Parameters

      • expandedState: boolean[]

      Returns void

onNavigate?: ((url) => void)

Function to call when the user clicks the call to action button

Type declaration

    • (url): void
    • Function to call when the user clicks the call to action button

      Parameters

      • url: string

      Returns void

screenMode: "desktop" | "mobile"

What size the screen currently is (affects page layout)

subtitle: string

Subtitle text

title: string

Biggest text on the page

Generated using TypeDoc