UNPKG

@breakaway/react-core

Version:

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

42 lines 1.52 kB
import React from 'react'; import { WizardControlStep, WizardNavStepFunction } from './types'; /** * Hosts the standard structure of a footer with ties to the active step so that text for buttons can vary from step to step. */ export interface WizardFooterProps { /** The active step */ activeStep: WizardControlStep; /** Next button callback */ onNext: () => WizardNavStepFunction | void; /** Back button callback */ onBack: () => WizardNavStepFunction | void; /** Cancel link callback */ onClose: () => void; /** Custom text for the Next button. The current step's nextButtonText takes precedence. */ nextButtonText?: React.ReactNode; /** Custom text for the Back button */ backButtonText?: React.ReactNode; /** Custom text for the Cancel link */ cancelButtonText?: React.ReactNode; /** Flag to disable the next button */ isNextDisabled?: boolean; /** Flag to disable the back button */ isBackDisabled?: boolean; /** True to hide the Back button */ isBackHidden?: boolean; /** True to hide the Cancel button */ isCancelHidden?: boolean; } interface WizardFooterWrapperProps { children: React.ReactNode; } export declare const WizardFooterWrapper: { ({ children }: WizardFooterWrapperProps): JSX.Element; displayName: string; }; export declare const WizardFooter: { ({ activeStep, ...internalProps }: WizardFooterProps): JSX.Element; displayName: string; }; export {}; //# sourceMappingURL=WizardFooter.d.ts.map