Skip to content

DropdownItem :function

function DropdownItem(Scope: Scope): (props: DropdownItemProperties) -> Frame
Initializes the component and returns a new function to create that component, which is an item that can be selected in a Dropdown.

Default Syntax

local DropdownComponent = require(StudioComponents.DropdownItem)
local DropdownItem = DropdownComponent(Scope)

Shorthand

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

Parameters

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

Returns Function

Parameters

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

Returns

Frame