@storybook/design-system
Version:
Storybook design system
19 lines • 615 B
TypeScript
import React from 'react';
import { Item } from './TableOfContentsItems';
export interface TableOfContentsProps {
children?: (args: {
menu: React.ReactNode;
allTopLevelMenusAreOpen: boolean;
toggleAllOpen: () => void;
toggleAllClosed: () => void;
}) => JSX.Element;
currentPath: string;
items: Item[];
}
export declare function TableOfContents({ children, currentPath, items, ...rest }: TableOfContentsProps): JSX.Element;
export declare namespace TableOfContents {
var defaultProps: {
children: any;
};
}
//# sourceMappingURL=TableOfContents.d.ts.map