shadimage
flx
blockaccordion-05source: ok · hit

Separated cards

Each item is a bordered card with spacing between them.

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

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/14/2026, 10:56:02 PM

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

const items = [
  {
    value: 'overview',
    title: 'Project overview',
    body: 'A summary of goals, scope, and the people involved in this project.',
  },
  {
    value: 'timeline',
    title: 'Timeline',
    body: 'Key milestones and delivery dates across the next two quarters.',
  },
  {
    value: 'resources',
    title: 'Resources',
    body: 'Links to design files, the repository, and the shared drive.',
  },
]

export function Accordion05() {
  return (
    <Accordion defaultValue={['overview']} className="w-full max-w-md gap-3">
      {items.map((item) => (
        <AccordionItem
          key={item.value}
          value={item.value}
          className="rounded-lg border px-4 not-last:border-b"
        >
          <AccordionTrigger>{item.title}</AccordionTrigger>
          <AccordionContent className="text-muted-foreground">
            {item.body}
          </AccordionContent>
        </AccordionItem>
      ))}
    </Accordion>
  )
}

More from flx

Browse all components in this library →