17 lines
475 B
TypeScript
17 lines
475 B
TypeScript
import * as React from "react";
|
||
|
||
export interface ProgressBarProps {
|
||
/** 0–100. Pass null/undefined for an indeterminate sweep. */
|
||
value?: number | null;
|
||
tone?: "accent" | "ok" | "warn" | "error";
|
||
height?: number;
|
||
/** Append a mono percentage on the right. */
|
||
showLabel?: boolean;
|
||
style?: React.CSSProperties;
|
||
}
|
||
|
||
/**
|
||
* Slim progress bar for library scans, playout builds and transcodes.
|
||
*/
|
||
export function ProgressBar(props: ProgressBarProps): JSX.Element;
|