UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

21 lines (20 loc) 726 B
/** * Web AccordionGroup Context * */ import React from 'react'; import type { SkeletonContextValue } from '../skeleton/SkeletonHelper'; import type { AccordionProps } from './Accordion'; import type { AccordionGroupProps } from './AccordionGroup'; export type AccordionContextValue = AccordionProps & SkeletonContextValue & { allowCloseAll?: boolean; expandBehavior?: AccordionGroupProps['expandBehavior']; callOnChange?: (parameters: { id: string; group: string; expanded: boolean; event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>; }) => void; }; declare const AccordionContext: React.Context<AccordionContextValue>; export default AccordionContext;