{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"faq-grid","type":"registry:block","title":"FAQ grid","description":"Short answers in two columns to scan without clicking, and a line to the help center.","dependencies":["lucide-react"],"registryDependencies":["https://dashral.com/r/utils.json","https://dashral.com/r/button.json"],"files":[{"path":"registry/dashral/blocks/faq-grid.tsx","type":"registry:file","target":"components/dashral/blocks/faq-grid.tsx","content":"import { ArrowRight } from \"lucide-react\"\nimport { Button } from \"../button\"\n\nconst sampleFaqs: { q: string; a: React.ReactNode }[] = [\n  { q: \"Is there a free plan?\", a: \"Yes, Starter is free forever for one person, with one dashboard and three sources.\" },\n  { q: \"Do I need an engineer to set it up?\", a: \"No. Connecting a source takes a couple of clicks; SQL is there if you want it.\" },\n  { q: \"Can I embed dashboards in my app?\", a: \"On Business, yes — with your branding and each customer seeing only their own data.\" },\n  { q: \"How does billing work?\", a: \"Per workspace, monthly or yearly. Seats you add mid-month are charged for the days left.\" },\n  { q: \"Is my data safe?\", a: \"Encrypted at rest and in transit, with SSO, roles and an audit log on Business.\" },\n  { q: \"What if I need help?\", a: \"Docs and a community for everyone; email support on Team; a named manager on Business.\" },\n]\n\n/**\n * Short answers you can scan without clicking: questions in two columns, each with its answer under it, then a\n * line pointing to the full help center. One column on phones. Every part comes from props.\n */\nexport function FaqGrid({\n  eyebrow = \"FAQ\",\n  title = \"Good to know\",\n  faqs = sampleFaqs,\n  more = { title: \"Didn't find your answer?\", description: \"The help center has guides for every feature.\", label: \"Visit the help center\", href: \"#\" },\n}: {\n  eyebrow?: React.ReactNode\n  title?: React.ReactNode\n  faqs?: { q: string; a: React.ReactNode }[]\n  /** The line under the answers pointing to more help; null hides it. */\n  more?: { title: string; description?: string; label: string; href: string } | null\n}) {\n  return (\n    <section className=\"bg-background px-4 py-16 sm:px-6 sm:py-24\">\n      <div className=\"mx-auto max-w-6xl\">\n        <div className=\"max-w-2xl\">\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        </div>\n        <dl className=\"mt-12 grid gap-x-12 gap-y-10 md:grid-cols-2\">\n          {faqs.map((faq) => (\n            <div key={faq.q}>\n              <dt className=\"font-semibold\">{faq.q}</dt>\n              <dd className=\"mt-2 text-sm leading-relaxed text-muted-foreground\">{faq.a}</dd>\n            </div>\n          ))}\n        </dl>\n        {more && (\n          <div className=\"mt-12 flex flex-wrap items-center justify-between gap-4 rounded-2xl border bg-card p-6\">\n            <p className=\"text-sm\">\n              <span className=\"font-semibold\">{more.title}</span> {more.description && <span className=\"text-muted-foreground\">{more.description}</span>}\n            </p>\n            <Button variant=\"outline\" size=\"sm\" className=\"group\" asChild>\n              <a href={more.href}>\n                {more.label} <ArrowRight className=\"transition-transform duration-(--duration-fast) group-hover:translate-x-0.5 rtl:-scale-x-100 rtl:group-hover:-translate-x-0.5\" />\n              </a>\n            </Button>\n          </div>\n        )}\n      </div>\n    </section>\n  )\n}\n"}],"cssVars":{"theme":{"color-primary-text":"var(--primary-text, var(--primary))","ease-standard":"var(--ease-standard)","ease-enter":"var(--ease-enter)","ease-exit":"var(--ease-exit)","ease-spring":"var(--ease-spring)"},"light":{"duration-fast":"160ms","duration-standard":"240ms","duration-considered":"480ms","ease-standard":"cubic-bezier(0.2, 0, 0, 1)","ease-enter":"cubic-bezier(0, 0, 0, 1)","ease-exit":"cubic-bezier(0.3, 0, 1, 1)","ease-spring":"linear(0, 0.071 4%, 0.234 8%, 0.433 12%, 0.626 17%, 0.791 21%, 0.917 25%, 1.004 29%, 1.055 33%, 1.079 38%, 1.083 42%, 1.075 46%, 1.06 50%, 1.043 54%, 1.027 58%, 1.015 62%, 1.005 67%, 0.998 71%, 0.995 75%, 0.993 79%, 0.993 83%, 0.994 88%, 0.995 92%, 0.997 96%, 1)"},"dark":{}}}