import { VFC } from 'react'; import styles from './progress-bar.module.scss'; export type ProgressBarProps = { /** * Accessible progress bar name. */ 'aria-label'?: string; /** * Current value. */ current: number; /** * Additional information to display before progress bar. */ info?: string; /** * Minimal value. */ min: number; /** * Maximal value. */ max: number; }; /** * ProgressBar component * * Render a progress bar. */ const ProgressBar: VFC = ({ current, info, min, max, ...props }) => { return (
{info &&
{info}
}
); }; export default ProgressBar;