shadimage
flx
blockaccordion-04source: ok · hit

FAQ

A titled question-and-answer list.

npx shadcn add "https://ui.flexnative.com/r/accordion-04.json"
free

Where it goes

faq

Interaction

accordion

Tags auto-generated by rules on 9/24/2026 — empty means no evidence, not lack of support.

Dependencies

Bundle weight · light

Registry dependencies

accordion

Files1 · source cached 10/9/2026, 3:31:10 PM

registry/patterns/accordion/accordion-04.tsx
import {
  Accordion,
  AccordionContent,
  AccordionItem,
  AccordionTrigger,
} from '@/components/ui/accordion'

const faqs = [
  {
    q: 'Can I cancel my subscription anytime?',
    a: 'Yes. Your plan stays active until the end of the current billing period, and you keep full access until then.',
  },
  {
    q: 'Do you offer refunds?',
    a: 'We refund unused time on annual plans within 30 days of purchase. Monthly plans are non-refundable.',
  },
  {
    q: 'Can I switch plans later?',
    a: 'Absolutely — upgrade or downgrade at any time. Changes are prorated against your next invoice.',
  },
  {
    q: 'Is there a free trial?',
    a: 'Every plan includes a 14-day free trial. No credit card is required to start.',
  },
]

export function Accordion04() {
  return (
    <div className="w-full max-w-xl">
      <h3 className="mb-4 text-lg font-semibold">Frequently asked questions</h3>
      <Accordion>
        {faqs.map((faq, index) => (
          <AccordionItem key={faq.q} value={`faq-${index}`}>
            <AccordionTrigger>{faq.q}</AccordionTrigger>
            <AccordionContent className="text-muted-foreground leading-relaxed">
              {faq.a}
            </AccordionContent>
          </AccordionItem>
        ))}
      </Accordion>
    </div>
  )
}

More from flx

Browse all components in this library →