Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Wizard/WizardToggle.d.ts

raw
1 /// <reference types="react" />
2 import { WizardStepType } from './types';
3 import { WizardNavProps } from './WizardNav';
4 /**
5 * Used to toggle between step content, including the body and footer. This is also where the navigation and its expandability is controlled.
6 */
7 export interface WizardToggleProps {
8 /** List of steps and/or sub-steps */
9 steps: WizardStepType[];
10 /** The current step */
11 activeStep: WizardStepType;
12 /** Wizard footer */
13 footer: React.ReactElement<any>;
14 /** Wizard navigation */
15 nav: React.ReactElement<WizardNavProps>;
16 /** The expandable dropdown button's aria-label */
17 'aria-label'?: string;
18 /** Flag to determine whether the dropdown navigation is expanded */
19 isNavExpanded?: boolean;
20 /** Callback to expand or collapse the dropdown navigation */
21 toggleNavExpanded?: (event: React.MouseEvent<HTMLButtonElement> | KeyboardEvent) => void;
22 }
23 export declare const WizardToggle: {
24 ({ steps, activeStep, footer, nav, isNavExpanded, toggleNavExpanded, "aria-label": ariaLabel }: WizardToggleProps): import("react/jsx-runtime").JSX.Element;
25 displayName: string;
26 };
27 //# sourceMappingURL=WizardToggle.d.ts.map