Skip to content

Accordion

A beautiful and interactive accordion component with smooth animations and customizable content

Installation

pnpm dlx shadcn@latest add https://ui.sanjid.shop/r/accordion.json

Props

PropTypeRequiredDefaultDescription
itemsarrayYesThe items to display in the accordion
allowMultiplebooleanNofalseAllow multiple items to be open at the same time
defaultOpenstring[]No[]The default open items
classNamestringNoThe class name to apply to the accordion group

Usage

1import { Accordion, AccordionGroup } from "@/components/ui/animated-accordion";
1<AccordionGroup2  items={[3    {4      id: "accordion-1",5      title: "Accordion 1",6      content: "Content 1",7    },8    {9      id: "accordion-2",10      title: "Accordion 2",11      content: "Content 2",12    },13  ]}14/>

Build your next big idea with us

From lightning-fast landing pages to fully functional SaaS products, we turn your vision into reality. Book a call today and let's make something extraordinary.

They transformed our idea into a fully functional product in record time. Couldn't be happier!

Alex Chen

Founder, StartupX

The team's attention to detail and design expertise set our product apart in the market.

Sarah Kim

CTO, Innovate Inc