Sticky Split FAQ
A two-column FAQ with a sticky eyebrow, light heading, and support call to action on the left, and an interactive accordion of questions on the right.
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/sticky-split-faq.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/faq/faq79.tsx instead.
Usage
The file also exports faq79Demo, 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 { Faq79, faq79Demo } from "@/components/blocks/faq/faq79"; export default function Page() { return <Faq79 {...faq79Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "Support" | Small label above the heading in the left column. |
| heading | string | "Questions, answered" | Light-weight heading in the left column. |
| description | string | none | Supporting copy under the heading. |
| ctaLabel | string | "Contact support" | Label of the left column's outline CTA button. |
| items | FaqItem[] | none | Questions rendered as a single-open-at-a-time accordion in the right column. |
| className | string | none | Extra classes for the outer section element. |
Types
type FaqItem = { question: string; answer: string };
Behavior notes
- The left column becomes lg:sticky at lg:top-24 on large screens, staying in view as the visitor scrolls through the right column's questions; it's static (non-sticky) on smaller screens where the columns stack.
- The right-column accordion allows only one item open at a time; the first item is expanded by default and clicking the open item collapses it.
- The 'Contact support' button in the left column has no href or onClick, it's an inert placeholder for a real support flow that would need a backend.
- This is a real 'use client' component; demo props live in the separate faq79.demo.tsx file so the live block preview (rendered from a Server Component) receives real data instead of undefined.
More FAQ Blocks
View all →collapsible-accordion
Collapsible Accordion
Stacked cards with expandable sections, for full-length answers in a compact format.
open-list-layout
Open List Layout
Questions with answers displayed directly below in a simple always-open list.
three-column-grid
Three Column Grid
Q&A pairs arranged in a responsive grid layout, always open.
tabbed-categories
Tabbed Categories
Sidebar navigation with category tabs and an accordion of that category's questions.
searchable-accordion
Searchable Accordion
Search input that filters accordion items in real-time by question and answer text.
grouped-sections
Grouped Sections
FAQs organized into titled sections, each with its own independent accordion below it.