'use client' import { forwardRef } from 'react' import * as React from 'react' import classNames from 'classnames' import { clamp } from '~/src/utils/number' import { cssDimension } from '~/src/utils/style' import { useThemeName } from '~/src/components/ThemeProvider' import type { ProgressBarProps } from './ProgressBar.types' import styles from './ProgressBar.module.scss' export const ProgressBar = forwardRef( function ProgressBar( { style, className, size = 'm', variant = 'green', width = 36, value = 0, ...rest }, forwardedRef ) { const clampedValue = clamp(value, 0, 1) return (
) } )