UNPKG

869 BTypeScriptView Raw
1import * as React from 'react';
2export interface ExpandableSectionToggleProps extends React.HTMLProps<HTMLDivElement> {
3 /** Content rendered inside the expandable toggle. */
4 children?: React.ReactNode;
5 /** Additional classes added to the expandable toggle. */
6 className?: string;
7 /** Flag indicating if the expandable section is expanded. */
8 isExpanded?: boolean;
9 /** Callback function to toggle the expandable content. */
10 onToggle?: (isExpanded: boolean) => void;
11 /** ID of the toggle's respective expandable section content. */
12 contentId?: string;
13 /** Direction the toggle arrow should point when the expandable section is expanded. */
14 direction?: 'up' | 'down';
15}
16export declare const ExpandableSectionToggle: React.FunctionComponent<ExpandableSectionToggleProps>;
17//# sourceMappingURL=ExpandableSectionToggle.d.ts.map
\No newline at end of file