dreamstack/registry/components/badge.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

6 lines
197 B
Text

-- DreamStack Badge Component
-- Small label with colored background
-- Variants: success, warning, error, info, default
export component Badge(label, variant) =
text label { variant: variant }