Skip to content

SelectOptionItem<T>

A single selectable option rendered as a button in the selectOption modal.

Import:

import type { SelectOptionItem } from 'obsidian-dev-utils/obsidian/modals/select-option';

Signature:

export interface SelectOptionItem<T>

Properties

PropertyTypeDescription
isCta?booleanWhether to render this option as the call-to-action (primary) button.
textstringThe button label.
valueTThe value the modal resolves with when this option is chosen.

Links to this page: