UNPKG

866 BTypeScriptView Raw
1/// <reference types="react" />
2export interface ProgressProps {
3 id?: string;
4 strokeWidth?: number;
5 trailWidth?: number;
6 className?: string;
7 percent?: number | number[];
8 strokeColor?: StrokeColorType;
9 trailColor?: string;
10 strokeLinecap?: StrokeLinecapType;
11 prefixCls?: string;
12 style?: React.CSSProperties;
13 gapDegree?: number;
14 gapPosition?: GapPositionType;
15 transition?: string;
16 onClick?: React.MouseEventHandler;
17 steps?: number | {
18 count: number;
19 gap: number;
20 };
21}
22export type StrokeColorObject = Record<string, string>;
23export type BaseStrokeColorType = string | StrokeColorObject;
24export type StrokeColorType = BaseStrokeColorType | BaseStrokeColorType[];
25export type GapPositionType = 'top' | 'right' | 'bottom' | 'left';
26export type StrokeLinecapType = 'round' | 'butt' | 'square';