evalution
    Preparing search index...

    Interface AddPromptField

    Describes a single form field rendered by the Add Prompt dialog.

    interface AddPromptField {
        defaultValue?: string;
        label: string;
        name: string;
        options?: { label: string; value: string }[];
        placeholder?: string;
        required?: boolean;
        type: "text" | "select";
    }
    Index

    Properties

    defaultValue?: string

    Pre-filled value.

    label: string

    Human-readable label shown next to the input.

    name: string

    Key used to identify this field's value (e.g. 'name').

    options?: { label: string; value: string }[]

    Available choices when type is 'select'.

    placeholder?: string

    Placeholder text shown when the field is empty.

    required?: boolean

    Whether the field must be filled before submission.

    type: "text" | "select"

    The kind of input control to render.