Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/Page/PageSidebar.d.ts

raw
1 /// <reference types="react" />
2 export interface PageSidebarProps extends React.HTMLProps<HTMLDivElement> {
3 /** Additional classes added to the page sidebar */
4 className?: string;
5 /** Content rendered inside the page sidebar (e.g. <PageSidebarBody /> */
6 children?: React.ReactNode;
7 /**
8 * If true, manages the sidebar open/close state and there is no need to pass the isSidebarOpen boolean into
9 * the sidebar component or add a callback onSidebarToggle function into the Masthead component
10 */
11 isManagedSidebar?: boolean;
12 /** Programmatically manage if the sidebar is shown, if isManagedSidebar is set to true in the Page component, this prop is managed */
13 isSidebarOpen?: boolean;
14 /** Sidebar id */
15 id?: string;
16 }
17 export interface PageSidebarContextProps {
18 isSidebarOpen: boolean;
19 }
20 export declare const pageSidebarContextDefaults: PageSidebarContextProps;
21 export declare const PageSidebarContext: import("react").Context<Partial<PageSidebarContextProps>>;
22 export declare const PageSidebar: React.FunctionComponent<PageSidebarProps>;
23 //# sourceMappingURL=PageSidebar.d.ts.map