import cx from "classnames"; import React from "react"; export interface ProgressProps { /** Color of the indicator */ color?: "orange" | "green" | "yellow" | "red" | "blue"; /** Provides clear instruction on what the horizontal bar represents */ label: React.ReactNode; /** Textual representation of the indicator */ value: React.ReactNode; /** Width of the progress indicator where 0 = empty, 1 = full */ width?: number; className?: string; children?: React.ReactNode; } const defaultProps = { color: "orange" as const, }; const CLASS_ROOT = "progress"; // class is defined by boosted export const Progress: React.FC = ({ color = defaultProps.color, label, value, width, className, ...other }) => { return (
{label}
{value}
); }; Progress.displayName = "Progress";