UNPKG

@rc-component/progress

Version:
31 lines (30 loc) 1.07 kB
/// <reference types="react" /> export type SemanticName = 'root' | 'rail' | 'track'; export interface ProgressProps { id?: string; strokeWidth?: number; railWidth?: number; className?: string; classNames?: Partial<Record<SemanticName, string>>; styles?: Partial<Record<SemanticName, React.CSSProperties>>; percent?: number | number[]; strokeColor?: StrokeColorType; railColor?: string; strokeLinecap?: StrokeLinecapType; prefixCls?: string; style?: React.CSSProperties; gapDegree?: number; gapPosition?: GapPositionType; transition?: string; onClick?: React.MouseEventHandler; steps?: number | { count: number; gap: number; }; loading?: boolean; } export type StrokeColorObject = Record<string, string | boolean>; export type BaseStrokeColorType = string | StrokeColorObject; export type StrokeColorType = BaseStrokeColorType | BaseStrokeColorType[]; export type GapPositionType = 'top' | 'right' | 'bottom' | 'left'; export type StrokeLinecapType = 'round' | 'butt' | 'square';