UNPKG

@storybook/design-system

Version:
19 lines 615 B
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