UNPKG

@postenbring/hedwig-react

Version:

React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).

24 lines 1 kB
import type { ReactElement } from "react"; import type { AccordionHeaderProps } from "./accordion-header"; import type { AccordionContentProps } from "./accordion-content"; export type AccordionItemChildrenType = ReactElement<AccordionHeaderProps> | ReactElement<AccordionContentProps>; export interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> { /** * Control the open state of the accordion manually */ open?: boolean; /** * Use with open to control the open state of the accordion manually */ onOpenChange?: (open: boolean) => void; /** * If the accordion should be open by default */ defaultOpen?: boolean; /** * Accepts type of Accordion.Content and Accordion.Header */ children: AccordionItemChildrenType[]; } export declare const AccordionItem: import("react").ForwardRefExoticComponent<AccordionItemProps & import("react").RefAttributes<HTMLDivElement>>; //# sourceMappingURL=accordion-item.d.ts.map