dreamstack/registry/components/card.ds
enzotar 76bb1bb3a2 feat: slot/children composition for components
- AST: added Expr::Slot variant
- Parser: 'slot' keyword renders children, [...] bracket children after ComponentUse
- Codegen: DS_{name}(props, __children) factory pattern
- Type checker: Slot => Type::View
- Updated Card component with slot for children
- Added examples/slot-demo.ds
2026-02-26 16:14:35 -08:00

9 lines
274 B
Text

-- DreamStack Card Component with Slot
-- Glassmorphism container with title, subtitle, and slot for children
export component Card(title, subtitle) =
column [
text title { variant: "title" }
text subtitle { variant: "subtitle" }
slot
] { variant: "card" }