Skip to content

Commit bbd8661

Browse files
committed
feat: allow adding custom children to list
1 parent ddf0aa3 commit bbd8661

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Components/list.luau

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ return function(baseScope: types.Scope, props: props)
4444
return if use(PrimaryColor) ~= "Alternate" then use(props.BackgroundColor3) else use(InitialAlternateColor3)
4545
end)
4646

47+
local Children = scope.EatValue(props, Fusion.Children) :: Fusion.Child
48+
4749
return scope:base(scope.CombineProperties({
4850
ClassName = if CanvasGroup == false then "Frame" else "CanvasGroup",
4951
Name = `TableContainer<{props.Name}>`,
@@ -99,6 +101,8 @@ return function(baseScope: types.Scope, props: props)
99101
},
100102
}
101103
end),
104+
105+
Children,
102106
},
103107
},
104108
},

0 commit comments

Comments
 (0)