UNPKG

gestalt

Version:

A set of React UI components which enforce Pinterest's design language

13 lines (12 loc) 448 B
import { ReactNode } from 'react'; type NestingContextType = { nestedLevel: number; }; type Props = { componentName: 'SideNavigation' | 'List' | 'TableOfContents'; maxNestedLevels: number; children: ReactNode; }; declare function NestingProvider({ componentName, children, maxNestedLevels }: Props): import("react/jsx-runtime").JSX.Element; declare function useNesting(): NestingContextType; export { NestingProvider, useNesting };