UNPKG

566 BTypeScriptView Raw
1import * as React from 'react';
2export type AccordionEventKey = string | string[] | null | undefined;
3export declare type AccordionSelectCallback = (eventKey: AccordionEventKey, e: React.SyntheticEvent<unknown>) => void;
4export interface AccordionContextValue {
5 activeEventKey?: AccordionEventKey;
6 onSelect?: AccordionSelectCallback;
7 alwaysOpen?: boolean;
8}
9export declare function isAccordionItemSelected(activeEventKey: AccordionEventKey, eventKey: string): boolean;
10declare const context: React.Context<AccordionContextValue>;
11export default context;