Fray Electron
    Preparing search index...

    Interface PromptOptions

    Content, choices and response callback for a prompt.

    interface PromptOptions {
        buttons: { label: string; value: string }[];
        description?: string;
        dismissible?: boolean;
        onResponse: (value: string | null) => void;
        title: string;
    }
    Index
    buttons: { label: string; value: string }[]

    Labeled choices and their response values; at least one is required.

    description?: string

    Optional explanatory text.

    dismissible?: boolean

    Whether the close button is available; defaults to true.

    onResponse: (value: string | null) => void

    Receives the chosen value, or null when dismissed.

    title: string

    Nonempty prompt title.