function Button(Scope: Scope): (props: BaseButtonProperties) -> TextButton
Initializes the component and returns a new function to create that component, which is a BaseButton but with already customized properties.
Default Syntax
local ButtonComponent = require(StudioComponents.Button)
local Button = ButtonComponent(Scope)
Shorthand
local Button = require(StudioComponents.Button)(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