-
Notifications
You must be signed in to change notification settings - Fork 427
/
Copy pathaccordion.d.ts
29 lines (28 loc) · 992 Bytes
/
accordion.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
declare module '@salesforce/design-system-react/components/accordion' {
import React from 'react';
type Props = {
/**
* CSS class names to be added to the accordion component. _Tested with snapshot testing._
*/
className?: any[] | Record<string, any> | string;
/**
* HTML id for accordion component. _Tested with snapshot testing._
*/
id?: number | string;
/**
* The panel content for the Accordion component. Accordion panels should be added as <AccordionPanel />. Event handler for the accordion panels should be added to `<AccordionPanel />`. Optional `panelContentActions` component may be passed as prop. _Tested with Mocha framework and snapshot testing._
*
* Example:
* ```
* <SLDSAccordion>
* <SLDSAccordionpanel />
* <SLDSAccordionpanel />
* <SLDSAccordionpanel />
* </SLDSAccordion>
* ```
*/
children: React.ReactNode /*.isRequired*/;
};
function Component(props: Props): JSX.Element;
export default Component;
}