{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-19",
  "type": "registry:block",
  "description": "Compact chevron FAQ list with an open count and an Expand all / Collapse all toggle.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "accordion",
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/faqs/faqs-19.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ChevronDown,\n  ChevronsDownUp,\n  ChevronsUpDown,\n} from \"@designali/icons\"\n\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from \"@workspace/ui/components/accordion\"\nimport { Button } from \"@workspace/ui/components/button\"\n\nconst faqs = [\n  {\n    q: \"How fast is shipping?\",\n    a: \"Orders placed before 2pm ship the same day. Standard delivery takes two to four working days; express arrives next day.\",\n  },\n  {\n    q: \"Do you ship internationally?\",\n    a: \"We ship to 34 countries. Duties and taxes are calculated at checkout, so there are no surprise fees on delivery.\",\n  },\n  {\n    q: \"What is your return policy?\",\n    a: \"Return unworn items within 60 days for a full refund. Print the prepaid label from your order page and drop it at any parcel point.\",\n  },\n  {\n    q: \"How do I find my size?\",\n    a: \"Each product page has a size guide with measurements in centimetres and inches. If you're between sizes, we suggest sizing up.\",\n  },\n  {\n    q: \"Are your fabrics sustainable?\",\n    a: \"Over 90% of our range uses organic cotton, recycled wool or European linen. Each product lists its exact materials and factory.\",\n  },\n  {\n    q: \"Can I change or cancel my order?\",\n    a: \"You have one hour after ordering to edit the address or cancel. After that, the order is packed and you can return it once it arrives.\",\n  },\n  {\n    q: \"Do you offer gift wrapping?\",\n    a: \"Add gift wrap at checkout for $4. We include a handwritten note and leave prices off the packing slip.\",\n  },\n  {\n    q: \"How do I care for merino wool?\",\n    a: \"Wash cold on a wool cycle or by hand and dry flat. Merino resists odour, so it rarely needs washing after every wear.\",\n  },\n]\n\nconst allValues = faqs.map((_, index) => index)\n\nexport default function Faqs19() {\n  const [open, setOpen] = useState<number[]>([0])\n  const allOpen = open.length === faqs.length\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto max-w-3xl px-6\">\n        <div className=\"flex flex-col gap-4 border-b border-border pb-6 sm:flex-row sm:items-end sm:justify-between\">\n          <div>\n            <h2 className=\"text-2xl font-semibold tracking-tight md:text-3xl\">\n              Shipping &amp; returns\n            </h2>\n            <p className=\"mt-2 text-sm text-muted-foreground\">\n              {faqs.length} questions &middot; {open.length} open\n            </p>\n          </div>\n          <Button\n            variant=\"outline\"\n            size=\"md\"\n            className=\"self-start sm:self-auto\"\n            onClick={() => setOpen(allOpen ? [] : allValues)}\n          >\n            {allOpen ? (\n              <ChevronsDownUp data-icon=\"inline-start\" />\n            ) : (\n              <ChevronsUpDown data-icon=\"inline-start\" />\n            )}\n            {allOpen ? \"Collapse all\" : \"Expand all\"}\n          </Button>\n        </div>\n        <Accordion\n          multiple\n          value={open}\n          onValueChange={(value) => setOpen(value as number[])}\n        >\n          {faqs.map((faq, index) => (\n            <AccordionItem\n              key={faq.q}\n              value={index}\n              className=\"border-b border-border\"\n            >\n              <AccordionTrigger className=\"group items-center gap-3 py-3.5 text-sm font-medium hover:no-underline\">\n                <ChevronDown className=\"size-4 shrink-0 -rotate-90 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-0\" />\n                <span className=\"flex-1\">{faq.q}</span>\n              </AccordionTrigger>\n              <AccordionContent className=\"ps-7 pb-4 text-sm leading-6 text-muted-foreground\">\n                {faq.a}\n              </AccordionContent>\n            </AccordionItem>\n          ))}\n        </Accordion>\n        <p className=\"mt-6 text-sm text-muted-foreground\">\n          Need help with an order?{\" \"}\n          <a href=\"#\" className=\"text-foreground underline underline-offset-4\">\n            Contact our care team\n          </a>\n        </p>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "faqs"
  ]
}