Skip to content

MainButton :function

function MainButton(Scope: Scope): (props: BaseButtonProperties) -> TextButton
Initializes the component and returns a new function to create that component, which is a BaseButton, but uses the style of a main button, which is usually a blue background color.

Default Syntax

local ButtonComponent = require(StudioComponents.MainButton)
local MainButton = ButtonComponent(Scope)

Shorthand

local MainButton = require(StudioComponents.MainButton)(Scope)

Parameters

Scope: Scope The Scope the component will be initialized in.

Returns Function

Parameters

props: BaseButtonProperties The table which contains the properties of the component that will be created.

Returns

TextButton