/** * Accordion * * A list Accordion Item that can open and close */ import React from 'react'; import './Accordion.scss'; export type item = { id: string; title?: string; header?: string | React.ReactNode; body?: string | React.ReactNode; color?: string; open?: boolean; }; export type AccordionProps = { children?: React.ReactNode; items?: item[]; single?: boolean; value?: string[]; onChange?: (ids: string[]) => void; }; /** * Accordion * * A list Accordion Item that can open and close * * @type item - The item for the Accordion * @param item.id - The id for the Accordion Item * @param item.title - The title for the Accordion Item * @param item.header - The header for the Accordion Item * @param item.body - The body for the Accordion Item * @param item.color - The color for the Accordion Item * @param item.open - The initial open state for the Accordion Item * * @param props - The props for the Accordion * @param props.items - The items for the Accordion * @param props.single - The single prop for the Accordion * @param props.value - string[] - Control the open/close state of the Accordion Item * @param props.onChange - (ids: string[]) => void - The onChange prop for the Accordion * @returns The Accordion component */ export default function Accordion(props: AccordionProps): import("react/jsx-runtime").JSX.Element;