UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

47 lines (46 loc) 1.47 kB
import * as React from 'react'; declare const ProgressTypes: ["line", "circle", "dashboard"]; export type ProgressType = typeof ProgressTypes[number]; declare const ProgressStatuses: ["normal", "exception", "active", "success"]; export type ProgressSize = 'default' | 'small'; export type StringGradients = { [percentage: string]: string; }; type FromToGradients = { from: string; to: string; }; export type ProgressGradient = { direction?: string; } & (StringGradients | FromToGradients); export interface SuccessProps { percent?: number; /** @deprecated Use `percent` instead */ progress?: number; strokeColor?: string; } export interface ProgressProps { prefixCls?: string; className?: string; type?: ProgressType; percent?: number; format?: (percent?: number, successPercent?: number) => React.ReactNode; status?: typeof ProgressStatuses[number]; showInfo?: boolean; strokeWidth?: number; strokeLinecap?: 'butt' | 'square' | 'round'; strokeColor?: string | string[] | ProgressGradient; trailColor?: string; width?: number; success?: SuccessProps; style?: React.CSSProperties; gapDegree?: number; gapPosition?: 'top' | 'bottom' | 'left' | 'right'; size?: ProgressSize; steps?: number; /** @deprecated Use `success` instead */ successPercent?: number; children?: React.ReactNode; } declare const Progress: React.FC<ProgressProps>; export default Progress;