Perseus
    Preparing search index...

    Type Alias NumericInputPromptJSON

    JSON describing a numeric-input widget. Intended for consumption by AI tools. A numeric-input widget displays a single text field where the learner types a numeric answer (integer, decimal, fraction, etc.).

    type NumericInputPromptJSON = {
        label: string;
        type: "numeric-input";
        userInput: { value: string };
    }
    Index

    Properties

    Properties

    label: string

    Accessible label for the input field, set by the content creator. Shown to learners using screen readers to describe what value should be entered.

    type: "numeric-input"
    userInput: { value: string }

    The current state of the widget user interface. Usually represents a learner's attempt to answer a question.

    Type Declaration

    • value: string

      The text currently entered in the input field by the learner.