Skip to content

obsidian/modals/select-option

Utility for displaying a modal that offers a fixed set of labelled options as buttons.

Unlike selectItem (a fuzzy-search picker over an arbitrary list), this modal renders one button per option — useful for a small, fixed set of mutually-exclusive choices where each choice has its own label and resolved value. It resolves with the chosen value, or null if the modal is dismissed without a choice.

InterfaceDescription
SelectOptionItemA single selectable option rendered as a button in the selectOption modal.
SelectOptionParamsParameters for selectOption.
FunctionDescription
selectOptionDisplays a modal in Obsidian offering a fixed set of labelled options as buttons.