1 | import * as React from 'react';
|
2 | export interface PageSidebarProps extends React.HTMLProps<HTMLDivElement> {
|
3 | /** Additional classes added to the page sidebar */
|
4 | className?: string;
|
5 | /** Component to render the side navigation (e.g. <Nav /> */
|
6 | nav?: React.ReactNode;
|
7 | /**
|
8 | * If true, manages the sidebar open/close state and there is no need to pass the isNavOpen boolean into
|
9 | * the sidebar component or add a callback onNavToggle function into the PageHeader component
|
10 | */
|
11 | isManagedSidebar?: boolean;
|
12 | /** Programmatically manage if the side nav is shown, if isManagedSidebar is set to true in the Page component, this prop is managed */
|
13 | isNavOpen?: boolean;
|
14 | /** Indicates the color scheme of the sidebar */
|
15 | theme?: 'dark' | 'light';
|
16 | }
|
17 | export interface PageSidebarContextProps {
|
18 | isNavOpen: boolean;
|
19 | }
|
20 | export declare const pageSidebarContextDefaults: PageSidebarContextProps;
|
21 | export declare const PageSidebarContext: React.Context<Partial<PageSidebarContextProps>>;
|
22 | export declare const PageSidebar: React.FunctionComponent<PageSidebarProps>;
|
23 | //# sourceMappingURL=PageSidebar.d.ts.map |
\ | No newline at end of file |