StaticdefaultReturns the JSON representation of the prompt for this widget. This is used by the AI to determine the prompt for the widget.
A coefficient style number allows the student to use - for -1 and an empty string to mean 1.
OptionalkeypadElement?: anyTranslatable Text; Text to describe this input. This will be shown to users using screenreaders.
Whether to right-align the text or not
OptionalshowSolutions?: ShowSolutionsUse size "Normal" for all text boxes, unless there are multiple text boxes in one line and the answer area is too narrow to fit them. Options: "normal" or "small"
Always false. Not used for this widget
The NumericInput widget is a numeric input field that supports a variety of answer forms, including integers, decimals, fractions, and mixed numbers.
[Jan 2025] We're currenly migrating from class-based components to functional components. While we cannot fully migrate this component yet, we can start by using the functional component for the rendering the UI of the widget.