- 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
13 lines
357 B
Text
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" }
|
|
]
|