Staaarter

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.

By Staaarter Team
FAQ
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
eyebrowstring"Support"Small label above the heading in the left column.
headingstring"Questions, answered"Light-weight heading in the left column.
descriptionstringnoneSupporting copy under the heading.
ctaLabelstring"Contact support"Label of the left column's outline CTA button.
itemsFaqItem[]noneQuestions rendered as a single-open-at-a-time accordion in the right column.
classNamestringnoneExtra 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.