UNPKG

773 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}
18export declare type BaseStrokeColorType = string | Record<string, string>;
19export declare type StrokeColorType = BaseStrokeColorType | BaseStrokeColorType[];
20export declare type GapPositionType = 'top' | 'right' | 'bottom' | 'left';
21export declare type StrokeLinecapType = 'round' | 'butt' | 'square';