We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88c7abd commit 0498fe7Copy full SHA for 0498fe7
src/Components/SearchBar.luau
@@ -4,13 +4,14 @@ local React = require("../../react")
4
5
export type Props = {
6
size: UDim2?,
7
+ children: any?,
8
}
9
10
local function SearchBarTextBox(props: Props)
11
return React.createElement("TextBox", {
12
Size = props.size,
13
[React.Tag] = "SearchBar",
- })
14
+ }, props.children)
15
end
16
17
return SearchBarTextBox
src/Stories/SearchBar.story.luau
@@ -11,6 +11,10 @@ return {
story = function()
local component = React.createElement(SearchBar, {
size = UDim2.fromOffset(190, 30),
+ }, {
+ StyleLink = React.createElement("StyleLink", {
+ StyleSheet = game.ReplicatedStorage.Design.SatchelStyleSheet,
+ }),
18
})
19
20
return component
0 commit comments