@breakaway/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
27 lines • 1.1 kB
TypeScript
import React from 'react';
import { WizardNavProps } from '../Wizard';
import { WizardControlStep } from './types';
/**
* Used to toggle between step content, including the body and footer. This is also where the navigation and its expandability is controlled.
*/
export interface WizardToggleProps {
/** List of steps and/or sub-steps */
steps: WizardControlStep[];
/** The current step */
activeStep: WizardControlStep;
/** Wizard footer */
footer: React.ReactElement;
/** Wizard navigation */
nav: React.ReactElement<WizardNavProps>;
/** The expandable dropdown button's aria-label */
'aria-label'?: string;
/** Flag to determine whether the dropdown navigation is expanded */
isNavExpanded?: boolean;
/** Callback to expand or collapse the dropdown navigation */
toggleNavExpanded?: () => void;
}
export declare const WizardToggle: {
({ steps, activeStep, footer, nav, isNavExpanded, toggleNavExpanded, "aria-label": ariaLabel }: WizardToggleProps): JSX.Element;
displayName: string;
};
//# sourceMappingURL=WizardToggle.d.ts.map