UNPKG

@stoplight/elements-core

Version:

[![docs](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat-square)](https://meta.stoplight.io/docs/elements) [![license](https://img.shields.io/npm/l/@stoplight/elements?style=flat-square)](./LICENSE)

23 lines (22 loc) • 831 B
import * as React from 'react'; import { LogoProps } from '../../types'; import type { TableOfContentsItem } from '../TableOfContents'; declare type ResponsiveSidebarLayoutProps = { maxContentWidth?: number; sidebarWidth?: number; children?: React.ReactNode; name: string; logo?: string | LogoProps; tree?: TableOfContentsItem[]; onTocClick?(): void; }; export declare const ResponsiveSidebarLayout: React.ForwardRefExoticComponent<ResponsiveSidebarLayoutProps & React.RefAttributes<HTMLDivElement>>; export declare const Sidebar: ({ name, logo, tree, pathname, onTocClick, isInResponsiveMode, }: { name: string; logo?: string | LogoProps | undefined; tree: TableOfContentsItem[]; pathname: string; onTocClick?(): void; isInResponsiveMode: boolean; }) => JSX.Element; export {};