UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

22 lines (21 loc) 728 B
/** * Web AccordionGroup Context * */ import React from 'react'; import { AccordionGroupProps } from './AccordionGroup'; type AccordionGroupContextProps = { expanded?: boolean; group?: string; expanded_ssr?: boolean; remember_state?: boolean; flush_remembered_state?: boolean; expanded_id?: string; onChange?: (...params: unknown[]) => void; onInit?: (...args: any[]) => any; collapseAccordionCallbacks?: React.MutableRefObject<(() => void)[]>; collapseAllHandleRef?: React.MutableRefObject<() => void>; expandBehavior?: AccordionGroupProps['expandBehavior']; }; declare const AccordionGroupContext: React.Context<AccordionGroupContextProps>; export default AccordionGroupContext;