Skip to content

Label :function

function Label(Scope: Scope): (props: LabelProperties) -> TextLabel
Initializes the component and returns a new function to create that component, which is a simple text label following Studio style guidelines for body text.

Default Syntax

local LabelComponent = require(StudioComponents.Label)
local Label = LabelComponent(Scope)

Shorthand

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

Parameters

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

Returns Function

Parameters

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

Returns

TextLabel