Dashral Pro is on the wayGet 30% off at launch

Dashral

FAQ split

The heading and a contact card beside an accordion of answers; stacks on phones.

$ pnpm dlx shadcn@latest add @dashral/faq-split

When to use

  • The heading and a contact card beside an accordion of answers.
  • Pricing and product pages answering the questions people ask before they start.

When not to use

  • Long help content in categories: Help center.
  • Short answers worth reading all at once: FAQ grid.

Usage

FAQ split with your own data: every prop has the sample as its default, so pass only what you have.

example.tsx
import { FaqSplit } from "@/components/dashral/blocks/faq-split"

<FaqSplit
  faqs={faqs}
  contact={{ title: "Still unsure?", description: "We answer within a day.", label: "Contact us", href: "/contact" }}
/>

API reference

FaqSplit

Questions on one side, a way to ask more on the other: the heading and a contact card stay put while the answers open in place. Stacks on phones. Every part comes from props.

PropTypeDefault
eyebrowReact.ReactNode"FAQ"
titleReact.ReactNode"Questions, answered"
descriptionReact.ReactNodesample
faqs{ value: string; title: string; content: React.ReactNode }[]sample
defaultOpenstring[]

The questions open at first, by value.

["trial"]
contact{ title: string; description?: string; label: string; href?: string; onClick?: () => void } | null

The card to ask more; null hides it.

sample