UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

36 lines (35 loc) 1.25 kB
import { BaseComponentProps } from '../internal/base-component'; import { NonCancelableEventHandler } from '../internal/events'; export interface WizardProps extends BaseComponentProps { steps: ReadonlyArray<WizardProps.Step>; activeStepIndex?: number; i18nStrings: WizardProps.I18nStrings; isLoadingNextStep?: boolean; onCancel?: NonCancelableEventHandler; onSubmit?: NonCancelableEventHandler; onNavigate?: NonCancelableEventHandler<WizardProps.NavigateDetail>; } export declare namespace WizardProps { interface Step { title: string; info?: React.ReactNode; description?: React.ReactNode; content: React.ReactNode; errorText?: React.ReactNode; isOptional?: boolean; } interface I18nStrings { stepNumberLabel(stepNumber: number): string; collapsedStepsLabel(stepNumber: number, stepsCount: number): string; cancelButton: string; previousButton: string; nextButton: string; submitButton: string; optional?: string; } interface NavigateDetail { requestedStepIndex: number; reason: WizardProps.NavigationReason; } type NavigationReason = 'next' | 'previous' | 'step'; }