{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "faqs-5", "type": "registry:block", "description": "Responsive FAQ section with filters, search, and accordions for quick answers.", "registryDependencies": [ "accordion", "button", "input-group", "empty" ], "files": [ { "path": "registry/blocks/faqs/5/faqs-section.tsx", "content": "\"use client\";\nimport { Search, SearchSlash } from \"lucide-react\";\nimport React from \"react\";\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n Empty,\n EmptyContent,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/components/ui/empty\";\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/components/ui/input-group\";\nimport { cn } from \"@/lib/utils\";\n\nexport function FaqsSection() {\n const [searchTerm, setSearchTerm] = React.useState(\"\");\n const [activeCategory, setActiveCategory] = React.useState(\"all\");\n\n const categories = [\n { id: \"all\", label: \"All\" },\n { id: \"getting-started\", label: \"Getting Started\" },\n { id: \"features\", label: \"Features\" },\n { id: \"billing\", label: \"Billing\" },\n { id: \"support\", label: \"Support\" },\n ];\n\n const filtered = faqs.filter((faq) => {\n const matchesCategory =\n activeCategory === \"all\" || faq.category === activeCategory;\n const matchesSearch =\n faq.title.toLowerCase().includes(searchTerm.toLowerCase()) ||\n faq.content.toLowerCase().includes(searchTerm.toLowerCase());\n return matchesCategory && matchesSearch;\n });\n\n return (\n
\n Find answers to common questions about Efferd. Can't find what you're\n looking for? Our support team is here to help.\n
\n\n\n Can't find what you're looking for?{\" \"}\n \n Contact Us\n \n
\n