Skip to content

Commit

Permalink
All renderers work, just needed to define extra props
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Nov 16, 2024
1 parent 6e5124e commit ed5b77a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
6 changes: 6 additions & 0 deletions code-samples/src/Fusion/FusionButton.luau
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ local function FusionButton(props: {
})
return New("TextButton")({
Text = props.text,
TextSize = 16,
Font = Enum.Font.BuilderSansExtraBold,
TextColor3 = Color3.fromRGB(50, 50, 50),
BackgroundColor3 = Color3.fromRGB(255, 255, 255),
BorderSizePixel = 0,
Size = UDim2.fromOffset(200, 40),
[OnEvent("Activated")] = props.onActivated,
})
end
Expand Down
6 changes: 6 additions & 0 deletions code-samples/src/FusionStoryteller/FusionButton.luau
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ local function FusionButton(props: {
})
return New("TextButton")({
Text = props.text,
TextSize = 16,
Font = Enum.Font.BuilderSansExtraBold,
TextColor3 = Color3.fromRGB(50, 50, 50),
BackgroundColor3 = Color3.fromRGB(255, 255, 255),
BorderSizePixel = 0,
Size = UDim2.fromOffset(200, 40),
[OnEvent("Activated")] = props.onActivated,
})
end
Expand Down
7 changes: 6 additions & 1 deletion code-samples/src/ReactStoryteller/ReactButton.luau
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ local function ReactButton(props: {
})
return React.createElement("TextButton", {
Text = props.text,
AutomaticSize = Enum.AutomaticSize.XY,
TextSize = 16,
Font = Enum.Font.BuilderSansExtraBold,
TextColor3 = Color3.fromRGB(50, 50, 50),
BackgroundColor3 = Color3.fromRGB(255, 255, 255),
BorderSizePixel = 0,
Size = UDim2.fromOffset(200, 40),
[React.Event.Activated] = props.onActivated,
})
end
Expand Down
6 changes: 6 additions & 0 deletions code-samples/src/Roact/RoactButton.luau
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ local RoactButton = Roact.Component:extend("RoactButton")
function RoactButton:render()
return Roact.createElement("TextButton", {
Text = self.props.text,
TextSize = 16,
Font = Enum.Font.BuilderSansExtraBold,
TextColor3 = Color3.fromRGB(50, 50, 50),
BackgroundColor3 = Color3.fromRGB(255, 255, 255),
BorderSizePixel = 0,
Size = UDim2.fromOffset(200, 40),
[Roact.Event.Activated] = self.props.onActivated,
})
end
Expand Down
6 changes: 6 additions & 0 deletions code-samples/src/RoactStoryteller/RoactButton.luau
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ local RoactButton = Roact.Component:extend("RoactButton")
function RoactButton:render()
return Roact.createElement("TextButton", {
Text = self.props.text,
TextSize = 16,
Font = Enum.Font.BuilderSansExtraBold,
TextColor3 = Color3.fromRGB(50, 50, 50),
BackgroundColor3 = Color3.fromRGB(255, 255, 255),
BorderSizePixel = 0,
Size = UDim2.fromOffset(200, 40),
[Roact.Event.Activated] = self.props.onActivated,
})
end
Expand Down

0 comments on commit ed5b77a

Please sign in to comment.