{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "faq-accordion-block-shadcnui", "type": "registry:block", "title": "FAQ Accordion", "description": "Expandable FAQ section with smooth accordion animations", "registryDependencies": [ "button" ], "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/sections/faq-accordion-block.tsx", "content": "\"use client\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Card } from \"@/components/ui/card\";\nimport { AnimatePresence, motion } from \"framer-motion\";\nimport { ChevronDown, HelpCircle, MessageCircle } from \"lucide-react\";\nimport { useState } from \"react\";\n\nconst faqs = [\n {\n question: \"What is included in the free plan?\",\n answer:\n \"The free plan includes access to basic components, up to 5 projects, community support, and regular updates. It's perfect for individuals and small projects to get started.\",\n },\n {\n question: \"Can I upgrade or downgrade my plan at any time?\",\n answer:\n \"Yes! You can upgrade or downgrade your plan at any time. Changes take effect immediately, and we'll prorate the billing accordingly. No hassle, no hidden fees.\",\n },\n {\n question: \"What payment methods do you accept?\",\n answer:\n \"We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and bank transfers for enterprise accounts. All payments are processed securely through Stripe.\",\n },\n {\n question: \"Is there a setup fee or contract required?\",\n answer:\n \"No setup fees and no long-term contracts required. You can cancel anytime. For enterprise plans, we offer flexible terms based on your needs.\",\n },\n {\n question: \"Do you offer refunds?\",\n answer:\n \"Yes, we offer a 30-day money-back guarantee. If you're not satisfied with our service within the first 30 days, we'll provide a full refund, no questions asked.\",\n },\n {\n question: \"How does customer support work?\",\n answer:\n \"Free plans get community support through our forum. Pro plans include email support with 24-hour response time. Enterprise plans get priority support with dedicated account managers and SLA guarantees.\",\n },\n];\n\nexport function FAQAccordionBlock() {\n const [openIndex, setOpenIndex] = useState(0);\n\n return (\n
\n
\n {/* Header */}\n \n \n \n FAQ\n \n

\n Frequently Asked Questions\n

\n

\n Have a question? We've got answers. If you don't find what you're\n looking for, feel free to contact us.\n

\n \n\n {/* FAQ Accordion */}\n
\n {faqs.map((faq, index) => {\n const isOpen = openIndex === index;\n\n return (\n \n \n setOpenIndex(isOpen ? null : index)}\n className=\"flex w-full items-center justify-between p-4 text-left md:p-6\"\n whileHover={{\n backgroundColor: \"rgba(var(--primary), 0.03)\",\n }}\n >\n \n {faq.question}\n \n \n \n \n \n\n \n {isOpen && (\n \n
\n \n {faq.answer}\n \n
\n \n )}\n
\n
\n \n );\n })}\n
\n\n {/* Bottom CTA */}\n \n \n \n

\n Still have questions?\n

\n

\n Our team is here to help. Get in touch and we'll respond as soon\n as possible.\n

\n
\n \n \n
\n
\n \n
\n
\n );\n}\n", "type": "registry:block", "target": "components/uitripled/faq-accordion-block-shadcnui.tsx" } ] }