UNPKG

1.07 kBTypeScriptView Raw
1import * as React from 'react';
2import { AccordionSelectCallback, AccordionEventKey } from './AccordionContext';
3import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
4export interface AccordionProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'>, BsPrefixProps {
5 activeKey?: AccordionEventKey;
6 defaultActiveKey?: AccordionEventKey;
7 onSelect?: AccordionSelectCallback;
8 flush?: boolean;
9 alwaysOpen?: boolean;
10}
11declare const _default: BsPrefixRefForwardingComponent<"div", AccordionProps> & {
12 Button: BsPrefixRefForwardingComponent<"div", import("./AccordionButton").AccordionButtonProps>;
13 Collapse: BsPrefixRefForwardingComponent<"div", import("./AccordionCollapse").AccordionCollapseProps>;
14 Item: BsPrefixRefForwardingComponent<"div", import("./AccordionItem").AccordionItemProps>;
15 Header: BsPrefixRefForwardingComponent<"h2", import("./AccordionHeader").AccordionHeaderProps>;
16 Body: BsPrefixRefForwardingComponent<"div", import("./AccordionBody").AccordionBodyProps>;
17};
18export default _default;