Files
agency/.pnpm-store/v3/files/e6/bb8db3047f1cc427c03566e849c58b1d86d51db5cf11f19293856c588106f531801acb3e48b19386b3d57f19d0ab6fa5712657bc9f65fa65a319099dfb12c6
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

12 lines
617 B
Plaintext

import React from 'react'
export function Progress({ value = 0, max = 100, height = 6, style, ...rest }) {
const pct = Math.max(0, Math.min(100, (value / max) * 100))
return (
<div role="progressbar" aria-valuenow={value} aria-valuemin={0} aria-valuemax={max}
style={{position:'relative',width:'100%',height,borderRadius:'var(--radius-full)',background:'var(--glass-strong)',overflow:'hidden',...style}} {...rest}>
<div style={{height:'100%',width:pct+'%',background:'var(--primary)',borderRadius:'var(--radius-full)',transition:'width var(--duration-base) var(--ease-out)'}} />
</div>
)
}