import { ProgressBar, type ProgressTone } from '../ui/progress-bar'; import { defineWebComponent } from './define'; interface Props extends Record { /** Current progress value (0..max). Attribute: `value`. */ value?: number; /** The value `value` runs to (default 100). Attribute: `max`. */ max?: number; /** Optional caption above the track. Attribute: `label`. */ label?: string; /** Fill color: `primary` (default), `success`, `warning`, `error`, `info`. Attribute: `tone`. */ tone?: string; } /** * `` — a thin determinate progress bar: a rounded track with a * `bg-primary` fill whose width is `value / max` (clamped to 0..100%). Set `tone` * for a semantic fill hue. Scalar attributes only. * * ```html * * * * ``` * Restyle via `::part(track)` / `::part(fill)`. */ defineWebComponent('kai-progress-bar', { value: undefined, max: undefined, label: undefined, tone: 'primary', }, (props) => ( ));