Skip to main content

mo.ui.dropdown

Create a dropdown menu for selecting from a list of options.

Signature

Parameters

Sequence[str] | dict[str, Any]
required
List of options or dictionary mapping labels to values
str
Initially selected value
bool
Allow deselecting to have no selection (defaults to True if value is None)
bool
default:"False"
Enable search filtering of options
str
default:"''"
Markdown label for the dropdown
bool
default:"False"
Whether dropdown takes full width

Examples

For multiple selections, use mo.ui.multiselect() instead.