Installation
Usage
import AccordionArrow from "@/components/ruixen/accordion-arrow";
const items = [
{
id: "1",
title: "Getting Started",
content: "Begin by installing the package with npm or yarn.",
},
{
id: "2",
title: "Configuration",
content: "Customize the components using props or themes.",
},
];
export default function MyAccordion() {
return <AccordionArrow items={items} defaultValue="1" />;
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | AccordionArrowItem[] | - | Array of accordion items |
defaultValue | string | - | ID of the initially open item |
className | string | - | Additional CSS classes |

