Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 344x 88x 88x | import type React from "react";
import {
AccordionItem as AccordionItemRaw,
Accordion as AccordionRaw,
} from "@heroui/accordion";
export type Props = {
children: React.ComponentProps<typeof AccordionRaw>["children"];
};
export const Accordion = (props: Props) => <AccordionRaw {...props} />;
export type ItemProps = {
key: string;
textValue: string;
title: React.ReactNode;
children: React.ReactNode;
};
export const AccordionItem = (props: ItemProps) => (
<AccordionItemRaw {...props} />
);
// @ts-expect-error see https://github.com/heroui-inc/heroui/issues/729
// oxlint-disable-next-line typescript/no-unsafe-assignment
AccordionItem.getCollectionNode = AccordionItemRaw.getCollectionNode;
|