UNPKG

1.03 kBTypeScriptView Raw
1import * as React from 'react';
2import { WizardStep } from './Wizard';
3export interface WizardToggleProps {
4 /** Function that returns the WizardNav component */
5 nav: (isWizardNavOpen: boolean) => React.ReactElement;
6 /** The wizard steps */
7 steps: WizardStep[];
8 /** The currently active WizardStep */
9 activeStep: WizardStep;
10 /** The WizardFooter */
11 children: React.ReactNode;
12 /** Set to true to remove body padding */
13 hasNoBodyPadding: boolean;
14 /** If the nav is open */
15 isNavOpen: boolean;
16 /** Callback function for when the nav is toggled */
17 onNavToggle: (isOpen: boolean) => void;
18 /** The button's aria-label */
19 'aria-label'?: string;
20 /** Sets aria-labelledby on the main element */
21 mainAriaLabelledBy?: string;
22 /** The main's aria-label */
23 mainAriaLabel?: string;
24 /** If the wizard is in-page */
25 isInPage?: boolean;
26}
27export declare const WizardToggle: React.FunctionComponent<WizardToggleProps>;
28//# sourceMappingURL=WizardToggle.d.ts.map
\No newline at end of file