UNPKG

@datalayer/core

Version:
37 lines (36 loc) 870 B
/** * Progress ring segment properties */ export interface IProgressRingItemProps { /** * Progress * * Value must be between 0 and 100. */ progress: number; /** * Segment color. * * Default to foreground-color-accent */ color?: string; } /** * Progress ring properties */ export interface IProgressRingProps extends React.SVGAttributes<SVGElement>, IProgressRingItemProps { /** * Accessible short description */ title?: string; } export declare const PROGRESS_SEGMENTS: number; /** * Progress ring component * * Children {@link Item} must be order in decreasing progress order. */ export declare function ProgressRing(props: React.PropsWithChildren<IProgressRingProps>): JSX.Element; export declare namespace ProgressRing { var Item: (props: IProgressRingItemProps) => JSX.Element; }