{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"faq-split","type":"registry:block","title":"FAQ split","description":"The heading and a contact card beside an accordion of answers; stacks on phones.","dependencies":["lucide-react"],"registryDependencies":["https://dashral.com/r/utils.json","https://dashral.com/r/accordion.json","https://dashral.com/r/button.json"],"files":[{"path":"registry/dashral/blocks/faq-split.tsx","type":"registry:file","target":"components/dashral/blocks/faq-split.tsx","content":"import { MessageCircle } from \"lucide-react\"\nimport { Accordion } from \"../accordion\"\nimport { Button } from \"../button\"\n\n// The products named here are real ones, as examples: their names are their owners' trademarks, no affiliation implied. Put in the tools your product really works with.\nconst brands = { payments: \"Stripe\", store: \"Shopify\", crm: \"HubSpot\", analytics: \"Google Analytics\" }\n\nconst sampleFaqs: { value: string; title: string; content: React.ReactNode }[] = [\n  { value: \"trial\", title: \"Is there a free trial?\", content: \"Yes. Every paid plan starts with 14 days free, no card needed. You keep everything you build if you upgrade.\" },\n  { value: \"sources\", title: \"Which data sources can I connect?\", content: `${brands.payments}, ${brands.store}, Postgres, MySQL, ${brands.crm}, ${brands.analytics} and about forty more. A REST API covers the rest.` },\n  { value: \"team\", title: \"Can I invite my whole team?\", content: \"Starter is for one person. Team covers up to 25 people with roles; Business has no limit and adds SSO.\" },\n  { value: \"security\", title: \"Where is my data stored?\", content: \"In the EU or the US, your choice, encrypted at rest and in transit. We never sell or share it.\" },\n  { value: \"cancel\", title: \"Can I cancel any time?\", content: \"Yes, from Billing in two clicks. Yearly plans are refunded for the months you haven't used.\" },\n]\n\n/**\n * Questions on one side, a way to ask more on the other: the heading and a contact card stay put while the\n * answers open in place. Stacks on phones. Every part comes from props.\n */\nexport function FaqSplit({\n  eyebrow = \"FAQ\",\n  title = \"Questions, answered\",\n  description = \"Everything people ask before they start. Something missing? We reply within a day.\",\n  faqs = sampleFaqs,\n  defaultOpen = [\"trial\"],\n  contact = { title: \"Still have a question?\", description: \"Talk to a person, not a bot.\", label: \"Contact us\", href: \"#\" },\n}: {\n  eyebrow?: React.ReactNode\n  title?: React.ReactNode\n  description?: React.ReactNode\n  faqs?: { value: string; title: string; content: React.ReactNode }[]\n  /** The questions open at first, by value. */\n  defaultOpen?: string[]\n  /** The card to ask more; null hides it. */\n  contact?: { title: string; description?: string; label: string; href?: string; onClick?: () => void } | null\n}) {\n  return (\n    <section className=\"bg-background px-4 py-16 sm:px-6 sm:py-24\">\n      <div className=\"mx-auto grid max-w-6xl gap-10 lg:grid-cols-[1fr_1.6fr] lg:gap-16\">\n        <div className=\"grid content-start gap-6 lg:sticky lg:top-8\">\n          <div>\n            {eyebrow && <p className=\"text-sm font-medium text-primary-text\">{eyebrow}</p>}\n            <h2 className=\"mt-3 text-3xl font-semibold tracking-[-0.03em] text-balance sm:text-4xl\">{title}</h2>\n            {description && <p className=\"mt-4 text-pretty text-muted-foreground\">{description}</p>}\n          </div>\n          {contact && (\n            <div className=\"flex items-center gap-4 rounded-2xl border bg-card p-5\">\n              <span aria-hidden className=\"grid size-10 shrink-0 place-items-center rounded-lg bg-primary/10 text-primary-text\">\n                <MessageCircle className=\"size-5\" />\n              </span>\n              <span className=\"grid flex-1\">\n                <span className=\"text-sm font-semibold\">{contact.title}</span>\n                {contact.description && <span className=\"text-xs text-muted-foreground\">{contact.description}</span>}\n              </span>\n              {contact.href ? (\n                <Button variant=\"outline\" size=\"sm\" asChild>\n                  <a href={contact.href}>{contact.label}</a>\n                </Button>\n              ) : (\n                <Button variant=\"outline\" size=\"sm\" onClick={contact.onClick}>\n                  {contact.label}\n                </Button>\n              )}\n            </div>\n          )}\n        </div>\n        <Accordion defaultValue={defaultOpen} items={faqs} classNames={{ content: \"text-muted-foreground leading-relaxed\" }} />\n      </div>\n    </section>\n  )\n}\n"}],"cssVars":{"theme":{"color-primary-text":"var(--primary-text, var(--primary))"},"light":{},"dark":{}}}