You get unrestricted access to all Pro features for 14 days without entering a credit card. If you decide not to upgrade at the end of your trial, your workspace automatically transitions to our free tier with zero data loss or service disruption.

How to use

01Import the component
import { SplitFaq } from '@/components/shitui/SplitFaq';
02Use in your application

Render Split FAQ with built-in SaaS defaults or pass custom questions.

export default function FAQSection() {
return (
  <section className="py-20 px-4">
    <SplitFaq />
  </section>
);
}
03Custom Questions & Config

Pass your own questions, answers, and duotone icons.

import { SplitFaq, type SplitFaqItem } from '@/components/shitui/SplitFaq';

const customFaq: SplitFaqItem[] = [
{
  id: 'setup',
  icon: 'sparkles',
  question: 'How fast can our team onboard?',
  answer: 'You can deploy in under 5 minutes with zero configuration required.',
},
{
  id: 'security',
  icon: 'shield',
  question: 'Is our data fully encrypted?',
  answer: 'Yes, with AES-256 encryption at rest and TLS 1.3 in transit.',
},
];

export default function CustomFAQ() {
return (
  <SplitFaq
    items={customFaq}
    defaultOpenIndex={0}
    showIcons={true}
  />
);
}

Features

The active question splits out into an independent elevated card while adjacent cards regroup smoothly above and below.

Props

PropTypeDefaultDescription
itemsSplitFaqItem[]SAAS_FAQ_ITEMSArray of FAQ items containing id, question, answer, and optional icon.
defaultOpenIndexnumber | null0Index of the FAQ item open by default. Set to null to start with all cards closed.
showIconsbooleantrueWhether to show the leading icon before each question title.
classNamestringundefinedAdditional Tailwind CSS classes applied to the root container.