Skip to content

Commit 0498fe7

Browse files
authored
Add stylelink to searchbar
Signed-off-by: GitHub <[email protected]>
1 parent 88c7abd commit 0498fe7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Components/SearchBar.luau

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ local React = require("../../react")
44

55
export type Props = {
66
size: UDim2?,
7+
children: any?,
78
}
89

910
local function SearchBarTextBox(props: Props)
1011
return React.createElement("TextBox", {
1112
Size = props.size,
1213
[React.Tag] = "SearchBar",
13-
})
14+
}, props.children)
1415
end
1516

1617
return SearchBarTextBox

src/Stories/SearchBar.story.luau

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ return {
1111
story = function()
1212
local component = React.createElement(SearchBar, {
1313
size = UDim2.fromOffset(190, 30),
14+
}, {
15+
StyleLink = React.createElement("StyleLink", {
16+
StyleSheet = game.ReplicatedStorage.Design.SatchelStyleSheet,
17+
}),
1418
})
1519

1620
return component

0 commit comments

Comments
 (0)