Skip to content

IconButton :function

function IconButton(Scope: Scope): (props: IconButtonProperties) -> TextButton
Initializes the component and returns a new function to create that component, which is a button with an image on it instead of text.

Default Syntax

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

Shorthand

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

Parameters

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

Returns Function

Parameters

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

Returns

TextButton