UNPKG

1.25 kBTypeScriptView Raw
1import RcSteps from 'rc-steps';
2import type { ProgressDotRender } from 'rc-steps/lib/Steps';
3import * as React from 'react';
4export interface StepProps {
5 className?: string;
6 description?: React.ReactNode;
7 icon?: React.ReactNode;
8 onClick?: React.MouseEventHandler<HTMLElement>;
9 status?: 'wait' | 'process' | 'finish' | 'error';
10 disabled?: boolean;
11 title?: React.ReactNode;
12 subTitle?: React.ReactNode;
13 style?: React.CSSProperties;
14}
15export interface StepsProps {
16 type?: 'default' | 'navigation' | 'inline';
17 className?: string;
18 rootClassName?: string;
19 current?: number;
20 direction?: 'horizontal' | 'vertical';
21 iconPrefix?: string;
22 initial?: number;
23 labelPlacement?: 'horizontal' | 'vertical';
24 prefixCls?: string;
25 progressDot?: boolean | ProgressDotRender;
26 responsive?: boolean;
27 size?: 'default' | 'small';
28 status?: 'wait' | 'process' | 'finish' | 'error';
29 style?: React.CSSProperties;
30 percent?: number;
31 onChange?: (current: number) => void;
32 children?: React.ReactNode;
33 items?: StepProps[];
34}
35type CompoundedComponent = React.FC<StepsProps> & {
36 Step: typeof RcSteps.Step;
37};
38declare const Steps: CompoundedComponent;
39export default Steps;