@furystack/shades-common-components
Version:
33 lines • 999 B
TypeScript
import type { ChildrenList } from '@furystack/shades';
export interface WizardStepProps {
/**
* The current page number
*/
currentPage: number;
/**
* Total count of the wizard pages
*/
maxPages: number;
/**
* Callback that will be executed when the user navigates to the next page
*/
onNext?: () => void;
/**
* Callback that will be executed when the user navigates to the previous page
*/
onPrev?: () => void;
}
export interface WizardProps {
/**
* An array of Shade<WizardStepProps> components
*/
steps: Array<(props: WizardStepProps, children: ChildrenList) => JSX.Element<any>>;
/**
* A callback that will be executed when the wizard is completed
*/
onFinish?: () => void;
}
export declare const Wizard: (props: WizardProps & Omit<Partial<HTMLElement>, "style"> & {
style?: Partial<CSSStyleDeclaration>;
}, children?: ChildrenList) => JSX.Element;
//# sourceMappingURL=index.d.ts.map