Skip to content

<notatio-input-field>

<notatio-input-field name="x" value="3"> -- a field you type a value into, Wolfram's InputField. The text is notatio, parsed when you press Enter or leave the field, and the binding _x is the expression it parses to: a number, a symbol, Sin(t), whatever was typed. Text that does not parse leaves the binding where it was and marks the field. type="number" accepts only a number, and size is the width in characters.

For a mathematical editor with typeset input, use <notatio-in>; this is the plain field a form wants.

Stories in the playground·packages/notatio-lit/src/notatio-input-field.ts· in Vue: <InputField>

Attributes

AttributeTypeDefaultNotes
namestring""The binding this field drives: name="x" fills the wildcard _x.reflects
valuestring""The starting text, as notatio.
typestring"expression"expression (default) or number.
sizenumber8Width in characters.