Skip to content

Background :function

function Background(Scope: Scope): (props: BackgroundProperties) -> Frame
Initializes the component and returns a new function to create that component, which is a borderless Frame with a background color that matches the user's current theme.

Default Syntax

local BackgroundComponent = require(StudioComponents.Background)
local Background = BackgroundComponent(Scope)

Shorthand

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

Parameters

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

Returns Function

Parameters

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

Returns

Frame