UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

27 lines 1.19 kB
/// <reference types="react" /> import { WizardStepType } from './types'; import { WizardNavProps } from './WizardNav'; /** * 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: WizardStepType[]; /** The current step */ activeStep: WizardStepType; /** Wizard footer */ footer: React.ReactElement<any>; /** 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?: (event: React.MouseEvent<HTMLButtonElement> | KeyboardEvent) => void; } export declare const WizardToggle: { ({ steps, activeStep, footer, nav, isNavExpanded, toggleNavExpanded, "aria-label": ariaLabel }: WizardToggleProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; //# sourceMappingURL=WizardToggle.d.ts.map