Skip to content

BaseButton :function

function BaseButton(Scope: Scope): (props: BaseButtonProperties) -> TextButton
Initializes the component and returns a new function to create that component, which is a TextButton that reacts to different states like hover, press, and disabled.

Default Syntax

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

Shorthand

local BaseButton = require(StudioComponents.BaseButton)(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