Expand description
Progress primitives (Radix-aligned outcomes).
Upstream reference:
repo-ref/primitives/packages/react/progress/src/progress.tsx
Radix progress is conceptually a value clamped into a range, where the value can be absent (indeterminate). Fret’s shadcn recipe uses these helpers to compute the visual fill fraction.
Functions§
- normalize_
progress - Normalizes a progress value into the
[0, 1]range. - normalize_
progress_ opt - Normalizes an optional progress value;
Nonerepresents indeterminate.