@atlaskit/progress-tracker
Version:
A progress tracker displays the steps and progress through a journey.
26 lines (25 loc) • 615 B
TypeScript
/**
* Ideally these are exported by @atlaskit/page
*/
export type Spacing = 'comfortable' | 'cozy' | 'compact';
export type Status = 'unvisited' | 'visited' | 'current' | 'disabled';
/**
* @deprecated
*/
export type StatusType = Status;
export interface Stage {
id: string;
label: string;
percentageComplete: number;
status: Status;
noLink?: boolean;
href?: string;
onClick?: () => void;
}
export type Stages = Stage[];
export interface LinkComponentProps {
item: Stage;
}
export interface ProgressTrackerStageRenderProp {
link: (props: LinkComponentProps) => JSX.Element;
}