The Accordion component organizes details vertically inside collapsible sections. Built using Radix UI primitives and styled with custom borders, transitions, and Lucide icons.
Live Preview
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { Accordion } from "@/components/ui/accordion";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { Accordion } from "@/components/ui/accordion";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<Accordion
>
<div>Content goes here</div>
</Accordion>
</div>
);
}