FAQ Inline CTA
A conversion section that pairs a short expandable FAQ list with an always-visible call-to-action banner underneath. Perfect for addressing objections right before someone decides to convert.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/faq-inline-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta30.tsx instead.
Usage
The file also exports cta30Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Cta30, cta30Demo } from "@/components/blocks/cta/cta30"; export default function Page() { return <Cta30 {...cta30Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "FAQ" | Small label above the heading. |
| heading | string | "Still have questions?" | Main heading. |
| description | string | "Here's what people usually ask..." | Supporting copy under the heading. |
| faqs | FaqItem[] | none | List of question/answer pairs. Required. |
| primaryLabel | string | "Get started" | Primary call-to-action button label. |
| primaryHref | string | "#" | Link target for the primary button. |
| secondaryLabel | string | "Contact support" | Secondary button label. |
| secondaryHref | string | "#" | Link target for the secondary button. |
| className | string | none | Extra classes for the outer section element. |
Types
interface FaqItem { question: string; answer: string; }
Behavior notes
- The FAQ list has real expand/collapse behavior: a useState<number | null> tracks which single question index is open, and clicking a question's button toggles it open or closed (only one question is open at a time).
- The inline call-to-action banner below the FAQ list is always visible and not gated behind expanding any question.
- Both call-to-action buttons render as real Next.js Links via the button's render prop, but default to "#" and don't perform a real signup or navigate anywhere on their own.
More CTA Blocks
View all →centered-newsletter-cta
Centered Newsletter CTA
Minimal centered call-to-action with heading, description, and action buttons.
split-layout-newsletter-cta
Split Layout Newsletter CTA
Two-column call-to-action with a decorative image on one side and a feature list plus subscribe form on the other.
newsletter-social-proof-cta
Newsletter CTA with Social Proof
Newsletter call-to-action with an avatar stack, subscriber count, and a testimonial quote.
banner-cta
Banner CTA
Horizontal banner call-to-action with heading and action buttons side by side.
stats-cta
Stats CTA
Call-to-action section with impressive statistics and trust indicators above action buttons.
multi-card-cta
Multi-Card CTA
Three action cards side by side, each offering a different path to conversion.