@uva-glass/component-library
Version:
React components UvA
24 lines (23 loc) • 743 B
TypeScript
type NodeTypes = 'active' | 'draft' | 'rejected' | 'verified' | 'submitted';
export interface TimelineItemProps {
title: string;
type: NodeTypes;
reason?: string;
subtitle?: string;
tasks?: {
title?: string;
assignee?: string;
}[];
completed: boolean;
position: number;
}
export interface TimelineProps {
/** Is the task is completed */
timelineData: TimelineItemProps[];
/** Label of the button is inclomplete tasks are hidden */
showLabel: string;
/** Label of the button is inclomplete tasks are shown */
hideLabel: string;
}
export declare const Timeline: ({ timelineData, showLabel, hideLabel }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
export {};