{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-4",
  "title": "FAQ With Sticky Support Sidebar",
  "description": "FAQ accordion with a sticky sidebar card offering contact support in a dialog and a link to browse documentation.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "accordion",
    "button",
    "card",
    "dialog",
    "field",
    "input",
    "sonner",
    "textarea"
  ],
  "files": [
    {
      "path": "registry/blocks/faqs/4/faqs-block.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from \"@/components/ui/accordion\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\"\nimport {\n  Dialog,\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 { Toaster } from \"@/components/ui/sonner\"\nimport { Textarea } from \"@/components/ui/textarea\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\nconst faqs = [\n  {\n    q: \"How do I install a block from the registry?\",\n    a: \"Copy the install command from any block page and run it with the shadcn CLI. The block, its dependencies, and required primitives are added straight to your project.\",\n  },\n  {\n    q: \"Do the blocks work with my existing theme?\",\n    a: \"Yes. Every block is built on shadcn theme tokens, so it inherits your colors, radius, and typography automatically and renders correctly in both light and dark mode.\",\n  },\n  {\n    q: \"Can I customize a block after installing it?\",\n    a: \"Absolutely. Blocks are copied directly into your codebase as plain, editable source, so you own the code and can change markup, styles, and logic however you like.\",\n  },\n  {\n    q: \"What is the difference between free and Pro blocks?\",\n    a: \"Free blocks are open and installable by anyone. Pro blocks unlock advanced layouts, dashboards, and full-page templates, served through your authenticated Acme account.\",\n  },\n  {\n    q: \"Will updates to a block overwrite my changes?\",\n    a: \"No. Because blocks live in your repository, reinstalling a newer version is opt-in. You decide when to pull updates and how to merge them with your edits.\",\n  },\n  {\n    q: \"Which frameworks are supported?\",\n    a: \"Blocks target React 19 and Next.js with the App Router, styled using Tailwind CSS. Most are framework-agnostic enough to drop into any modern React setup.\",\n  },\n]\n\nexport default function FaqsBlock() {\n  const [open, setOpen] = useState(false)\n\n  return (\n    <section className=\"flex w-full items-center justify-center bg-muted/30 px-6 py-16 text-foreground\">\n      <Toaster />\n      <div className=\"mx-auto grid w-full max-w-5xl gap-12 md:grid-cols-[1.4fr_1fr] md:gap-16\">\n        <div>\n          <h2 className=\"font-heading text-3xl font-bold tracking-tight sm:text-4xl\">\n            Frequently asked questions\n          </h2>\n          <p className=\"mt-3 text-muted-foreground\">\n            Everything you need to know about installing and using Acme blocks.\n          </p>\n\n          <Accordion defaultValue={[faqs[0].q]} className=\"mt-8\">\n            {faqs.map(({ q, a }) => (\n              <AccordionItem key={q} value={q}>\n                <AccordionTrigger className=\"py-4 text-base font-medium\">\n                  {q}\n                </AccordionTrigger>\n                <AccordionContent className=\"pb-4 text-base text-muted-foreground\">\n                  {a}\n                </AccordionContent>\n              </AccordionItem>\n            ))}\n          </Accordion>\n        </div>\n\n        <div className=\"md:pt-16\">\n          <Card className=\"md:sticky md:top-8\">\n            <CardHeader>\n              <span className=\"flex size-10 items-center justify-center rounded-full bg-primary/10 text-primary\">\n                <IconPlaceholder\n                  lucide=\"Headset\"\n                  tabler=\"IconHeadset\"\n                  hugeicons=\"CustomerSupportIcon\"\n                  phosphor=\"Headset\"\n                  remixicon=\"RiCustomerService2Line\"\n                  className=\"size-5\"\n                />\n              </span>\n              <CardTitle className=\"mt-4 text-xl\">\n                Still have questions?\n              </CardTitle>\n              <CardDescription className=\"text-base\">\n                Can&apos;t find the answer you&apos;re looking for? Our support\n                team usually replies within a few hours.\n              </CardDescription>\n            </CardHeader>\n            <CardContent className=\"flex flex-col gap-3\">\n              <Dialog open={open} onOpenChange={setOpen}>\n                <DialogTrigger\n                  render={\n                    <Button className=\"w-full\">\n                      <IconPlaceholder\n                        lucide=\"Mail\"\n                        tabler=\"IconMail\"\n                        hugeicons=\"MailIcon\"\n                        phosphor=\"Envelope\"\n                        remixicon=\"RiMailLine\"\n                        data-icon=\"inline-start\"\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                    </Button>\n                  }\n                />\n                <DialogContent>\n                  <form\n                    onSubmit={(event) => {\n                      event.preventDefault()\n                      setOpen(false)\n                      toast.success(\n                        \"Message sent. Our support team will reply shortly.\"\n                      )\n                    }}\n                  >\n                    <DialogHeader>\n                      <DialogTitle>Contact support</DialogTitle>\n                      <DialogDescription>\n                        Send us a message and we&apos;ll get back to you within\n                        a few hours.\n                      </DialogDescription>\n                    </DialogHeader>\n                    <FieldGroup className=\"my-4\">\n                      <Field>\n                        <FieldLabel htmlFor=\"support-email\">\n                          Work email\n                        </FieldLabel>\n                        <Input\n                          id=\"support-email\"\n                          type=\"email\"\n                          placeholder=\"jane@company.com\"\n                          required\n                        />\n                      </Field>\n                      <Field>\n                        <FieldLabel htmlFor=\"support-message\">\n                          How can we help?\n                        </FieldLabel>\n                        <Textarea\n                          id=\"support-message\"\n                          rows={4}\n                          className=\"resize-none\"\n                          placeholder=\"Describe your question…\"\n                          required\n                        />\n                      </Field>\n                    </FieldGroup>\n                    <DialogFooter showCloseButton>\n                      <Button type=\"submit\">\n                        <IconPlaceholder\n                          lucide=\"Mail\"\n                          tabler=\"IconMail\"\n                          hugeicons=\"MailIcon\"\n                          phosphor=\"Envelope\"\n                          remixicon=\"RiMailLine\"\n                          data-icon=\"inline-start\"\n                        />\n                        Send Message\n                      </Button>\n                    </DialogFooter>\n                  </form>\n                </DialogContent>\n              </Dialog>\n              <Button\n                variant=\"outline\"\n                render={<a href=\"#\" />}\n                nativeButton={false}\n                className=\"w-full\"\n              >\n                Browse Documentation\n              </Button>\n            </CardContent>\n          </Card>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/faqs-4.tsx"
    }
  ],
  "meta": {
    "height": "685px",
    "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"
}