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
| Property | Type | Description |
|---|---|---|
| isCta? | boolean | Whether to render this option as the call-to-action (primary) button. |
| text | string | The button label. |
| value | T | The value the modal resolves with when this option is chosen. |
Links to this page: