dreamstack/registry/components/progress.ds
enzotar a7af39e900 fix: when/else parentNode null guard for slot context + match parser boundaries + showcase demo
- When/else inside slots: anchor parentNode is null during initial effect
  Fixed with named effect function + requestAnimationFrame retry
- Match parser now terminates on ] } else tokens (works inside containers)
- Updated Progress/Badge components
- Added examples/showcase.ds: 5-section demo exercising all features
2026-02-26 16:34:45 -08:00

13 lines
357 B
Text

-- DreamStack Progress Component
-- Animated progress bar with percentage display
export component Progress(value, label) =
column [
row [
text label { variant: "label" }
text "{value}%" { variant: "label" }
]
column [
column [] { variant: "progress-fill", style: "width: {value}%" }
] { variant: "progress-track" }
]