Lui.Dropdown
A select control with a trigger and a pop-down list. The open state is controlled, so pass a bool
and an open-change callback (typically a LuiSignal<bool>):
Lui.Dropdown(
classes, // IReadOnlyList<LuiOption> or string list
selectedClass.Value,
value => selectedClass.Value = value,
classOpen.Value,
open => classOpen.Value = open,
"w-64",
placeholder: "Choose a class")The list opens below the trigger, and automatically flips above it when there isn’t enough room below (so a dropdown near the bottom of the screen stays on-screen). It closes when an option is chosen.
Last updated on