{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-3",
  "title": "FAQ With Contact Support Card",
  "description": "FAQ accordion beside an intro column holding a contact-support card whose dialog collects an email and message, confirmed by a toast.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "accordion",
    "button",
    "dialog",
    "field",
    "input",
    "sonner",
    "textarea"
  ],
  "files": [
    {
      "path": "registry/blocks/faqs/3/faqs-block.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from \"@/components/ui/accordion\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Dialog,\n  DialogClose,\n  DialogContent,\n  DialogDescription,\n  DialogFooter,\n  DialogHeader,\n  DialogTitle,\n  DialogTrigger,\n} from \"@/components/ui/dialog\"\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport { Textarea } from \"@/components/ui/textarea\"\nimport { Toaster } from \"@/components/ui/sonner\"\nimport { toast } from \"sonner\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\nconst faqs = [\n  {\n    q: \"How do I get started with Acme?\",\n    a: \"Sign up for a free account, create your first workspace, and follow the onboarding checklist. You will be up and running in under five minutes.\",\n  },\n  {\n    q: \"Can I use Acme for multiple projects?\",\n    a: \"Yes. Every account supports unlimited projects. You can organise them into separate workspaces and control access permissions per workspace.\",\n  },\n  {\n    q: \"What payment methods do you accept?\",\n    a: \"We accept all major credit and debit cards as well as ACH bank transfers for annual plans. Invoiced billing is available for Enterprise customers.\",\n  },\n  {\n    q: \"How do I cancel my subscription?\",\n    a: \"You can cancel at any time from Billing in your account settings. Your plan remains active until the end of the current billing period and will not renew.\",\n  },\n  {\n    q: \"Is my data portable?\",\n    a: \"Absolutely. You can export all your data as JSON or CSV from the Settings page at any time, with no restrictions or exit fees.\",\n  },\n  {\n    q: \"Do you offer discounts for non-profits?\",\n    a: \"We offer a 40% discount for verified non-profit organisations. Reach out to our team with your registration documents to apply.\",\n  },\n]\n\nexport default function FaqsBlock() {\n  const [open, setOpen] = useState(false)\n\n  function handleSubmit(e: React.FormEvent) {\n    e.preventDefault()\n    setOpen(false)\n    toast.success(\"Message sent\", {\n      description: \"Our support team typically replies within a few hours.\",\n    })\n  }\n\n  return (\n    <section className=\"flex w-full items-center justify-center bg-background px-6 py-16 text-foreground\">\n      <Toaster />\n      <div className=\"mx-auto w-full max-w-5xl\">\n        <div className=\"grid grid-cols-1 gap-12 md:grid-cols-[1fr_1.6fr] md:gap-16\">\n          <div className=\"flex flex-col gap-6\">\n            <div className=\"flex flex-col gap-3\">\n              <span className=\"text-xs font-semibold tracking-widest text-muted-foreground uppercase\">\n                FAQ\n              </span>\n              <h2 className=\"font-heading text-3xl font-bold tracking-tight sm:text-4xl\">\n                Questions &amp; answers\n              </h2>\n              <p className=\"text-sm leading-relaxed text-muted-foreground\">\n                Browse the most common questions about Acme below. If you do not\n                find what you are looking for, our support team is always happy\n                to help.\n              </p>\n            </div>\n\n            <div className=\"flex flex-col gap-4 rounded-lg border border-border bg-muted p-5\">\n              <div className=\"flex items-center gap-3\">\n                <div className=\"flex size-9 items-center justify-center rounded-lg border border-border bg-background\">\n                  <IconPlaceholder\n                    lucide=\"Mail\"\n                    tabler=\"IconMail\"\n                    hugeicons=\"MailIcon\"\n                    phosphor=\"Envelope\"\n                    remixicon=\"RiMailLine\"\n                    className=\"size-4 text-muted-foreground\"\n                  />\n                </div>\n                <div className=\"flex flex-col gap-0.5\">\n                  <span className=\"text-sm font-medium\">\n                    Still have questions?\n                  </span>\n                  <span className=\"text-xs text-muted-foreground\">\n                    We typically reply within a few hours.\n                  </span>\n                </div>\n              </div>\n              <Dialog open={open} onOpenChange={setOpen}>\n                <DialogTrigger\n                  render={<Button className=\"w-full justify-between\" />}\n                >\n                  Contact Support\n                  <IconPlaceholder\n                    lucide=\"ArrowRight\"\n                    tabler=\"IconArrowRight\"\n                    hugeicons=\"ArrowRightIcon\"\n                    phosphor=\"ArrowRight\"\n                    remixicon=\"RiArrowRightLine\"\n                    data-icon=\"inline-end\"\n                  />\n                </DialogTrigger>\n                <DialogContent>\n                  <form onSubmit={handleSubmit}>\n                    <DialogHeader>\n                      <DialogTitle>Contact support</DialogTitle>\n                      <DialogDescription>\n                        Tell us what is going on and we will get back to you,\n                        usually within a few hours.\n                      </DialogDescription>\n                    </DialogHeader>\n\n                    <FieldGroup className=\"my-4 gap-4\">\n                      <Field>\n                        <FieldLabel htmlFor=\"support-email\">Email</FieldLabel>\n                        <Input\n                          id=\"support-email\"\n                          type=\"email\"\n                          required\n                          placeholder=\"jane@company.com\"\n                        />\n                      </Field>\n                      <Field>\n                        <FieldLabel htmlFor=\"support-message\">\n                          How can we help?\n                        </FieldLabel>\n                        <Textarea\n                          id=\"support-message\"\n                          required\n                          rows={4}\n                          className=\"min-h-24 resize-none\"\n                          placeholder=\"Describe your question or issue…\"\n                        />\n                      </Field>\n                    </FieldGroup>\n\n                    <DialogFooter>\n                      <DialogClose render={<Button variant=\"outline\" />}>\n                        Cancel\n                      </DialogClose>\n                      <Button type=\"submit\">Send Message</Button>\n                    </DialogFooter>\n                  </form>\n                </DialogContent>\n              </Dialog>\n            </div>\n          </div>\n\n          <Accordion defaultValue={[faqs[0].q]}>\n            {faqs.map(({ q, a }) => (\n              <AccordionItem key={q} value={q}>\n                <AccordionTrigger className=\"py-3.5 text-sm font-medium\">\n                  {q}\n                </AccordionTrigger>\n                <AccordionContent className=\"pb-3.5 text-sm text-muted-foreground\">\n                  {a}\n                </AccordionContent>\n              </AccordionItem>\n            ))}\n          </Accordion>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/faqs-3.tsx"
    }
  ],
  "meta": {
    "height": "495px",
    "tier": "free"
  },
  "docs": "Requires a `base-*` style in components.json (the `shadcn init` default). Legacy `new-york`/`radix-*` styles install Radix primitives, which reject the `render` prop this block uses.",
  "categories": [
    "faqs"
  ],
  "type": "registry:block"
}