UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

19 lines (18 loc) 720 B
import type { ReactElement } from "react"; export interface ProgressProps { value: number; success?: boolean; warning?: boolean; danger?: boolean; } /** Show progress as a single continuous horizontal bar. */ export declare function Progress({ value, success, warning, danger }: ProgressProps): ReactElement | null; export interface SegmentedProgressProps { total: number; current: number; success?: boolean; warning?: boolean; danger?: boolean; } /** Show step progress as a horizontal bar of `total` segments, of which `current + 1` are filled. */ export declare function SegmentedProgress({ total, current, success, warning, danger }: SegmentedProgressProps): ReactElement | null;