Skip to content

Checkbox :function

function Checkbox(Scope: Scope): (props: CheckboxProperties) -> Frame
Initializes the component and returns a new function to create that component, which is a checkbox that reacts to different states like hover, checked, indeterminate, and disabled.

Default Syntax

local CheckboxComponent = require(StudioComponents.Checkbox)
local Checkbox = CheckboxComponent(Scope)

Shorthand

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

Parameters

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

Returns Function

Parameters

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

Returns

Frame