mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	 7709d9df20
			
		
	
	
		7709d9df20
		
			
		
	
	
	
	
		
			
			Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			472 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			472 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| type ProgressBarProps = {
 | |
|   percent: number
 | |
| }
 | |
| const ProgressBar = ({
 | |
|   percent = 0,
 | |
| }: ProgressBarProps) => {
 | |
|   return (
 | |
|     <div className='flex items-center'>
 | |
|       <div className='mr-2 w-[100px] rounded-lg bg-gray-100'>
 | |
|         <div
 | |
|           className='h-1 rounded-lg bg-[#2970FF]'
 | |
|           style={{ width: `${percent}%` }}
 | |
|         />
 | |
|       </div>
 | |
|       <div className='text-xs font-medium text-gray-500'>{percent}%</div>
 | |
|     </div>
 | |
|   )
 | |
| }
 | |
| 
 | |
| export default ProgressBar
 |