@samatawy/diagrams
    Preparing search index...

    Type Alias PromptDialogAction<T>

    A single action in a prompt dialog, consisting of a value, label, and optional primary flag.

    type PromptDialogAction<T extends string> = {
        value: T;
        label: string;
        primary?: boolean;
    }

    Type Parameters

    • T extends string
    Index

    Properties

    Properties

    value: T

    The value associated with this action. This value will be returned when the action is selected.

    label: string

    The label displayed on the button for this action.

    primary?: boolean

    Whether this action is the primary action. Primary actions are typically highlighted.