Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Page/PageToggleButton.d.ts

raw
1 /// <reference types="react" />
2 import { ButtonProps } from '../../components/Button';
3 export interface PageToggleButtonProps extends ButtonProps {
4 /** Content of the page toggle button */
5 children?: React.ReactNode;
6 /** True if the sidebar is shown */
7 isSidebarOpen?: boolean;
8 /** Callback function to handle the sidebar toggle button, managed by the Page component if the Page isManagedSidebar prop is set to true */
9 onSidebarToggle?: () => void;
10 /** Button id */
11 id?: string;
12 /** Adds an accessible name to the toggle button. */
13 'aria-label'?: string;
14 /** Flag indicating whether the hamburger button variation with animations should be used. */
15 isHamburgerButton?: boolean;
16 /** IsHamburgerButton must be true for hamburgerVariant to be have an effect. Adjusts and animates the hamburger icon to indicate what will happen upon clicking the button. */
17 hamburgerVariant?: 'expand' | 'collapse';
18 }
19 export declare const PageToggleButton: React.FunctionComponent<PageToggleButtonProps>;
20 //# sourceMappingURL=PageToggleButton.d.ts.map