Installation
Usage
import AccordionPlus from "@/components/ruixen/accordion-plus";
const items = [
{
id: "1",
title: "What's included in the free plan?",
content: "The free plan includes up to 3 projects and 1GB storage.",
},
{
id: "2",
title: "Can I upgrade later?",
content: "Yes, you can upgrade to a paid plan at any time.",
},
];
export default function MyAccordion() {
return <AccordionPlus items={items} defaultValue="1" />;
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | AccordionPlusItem[] | - | Array of accordion items |
defaultValue | string | - | ID of the initially open item |
className | string | - | Additional CSS classes |

