Files
zeekay 8e572430a8 feat: Zoo Design System — tokens, components, brand assets, guidelines
Monochrome, dark by default. One hue rendered through an opacity ladder.
Tokens (color, type, spacing, radius, elevation, motion) + core/forms/navigation/
overlays components + brand guidelines + ui kit. The single source of truth for
every Zoo surface — loadable and editable.
2026-07-24 17:21:13 -07:00

12 lines
616 B
React

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(--neutral-800)',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>
)
}