UNPKG

1.05 kBTypeScriptView Raw
1import * as React from 'react';
2export interface StepsProps {
3 type?: 'default' | 'navigation';
4 className?: string;
5 current?: number;
6 direction?: 'horizontal' | 'vertical';
7 iconPrefix?: string;
8 initial?: number;
9 labelPlacement?: 'horizontal' | 'vertical';
10 prefixCls?: string;
11 progressDot?: boolean | Function;
12 responsive?: boolean;
13 size?: 'default' | 'small';
14 status?: 'wait' | 'process' | 'finish' | 'error';
15 style?: React.CSSProperties;
16 percent?: number;
17 onChange?: (current: number) => void;
18}
19export interface StepProps {
20 className?: string;
21 description?: React.ReactNode;
22 icon?: React.ReactNode;
23 onClick?: React.MouseEventHandler<HTMLElement>;
24 status?: 'wait' | 'process' | 'finish' | 'error';
25 disabled?: boolean;
26 title?: React.ReactNode;
27 subTitle?: React.ReactNode;
28 style?: React.CSSProperties;
29}
30interface StepsType extends React.FC<StepsProps> {
31 Step: React.ClassicComponentClass<StepProps>;
32}
33declare const Steps: StepsType;
34export default Steps;