Skip to content

Dynamic ​

<Dynamic value="_n * 50"> -- a derived readout in running prose, after Wolfram's Dynamic. It typesets whatever its value evaluates to and nothing else: no editor, no assertion, no In/Out row.

Inside a <DynamicModule> the wildcards are the surrounding knobs, and the wrapper rewrites this element's value on every move — so what the element itself sees is always a concrete expression. N(…) around the value forces a decimal where the exact answer would be a fraction or a surd, and digits says how much of that decimal belongs in a sentence.

Demos·packages/components/src/dynamic-box.ts· draws Dynamic

Props

PropTypeDefaultNotes
valuestring""The Epsil expression to evaluate and typeset.
displaybooleanfalseTypeset as a centred display equation rather than inline.reflects
digitsnumber6Significant figures to keep of an approximate result; 0 prints all of them.

As a web component

Plain custom elements, no framework required: import @enumeratio/frontend for the side effect and write <dynamic-box> in any HTML. Attributes are kebab-case and always strings; the props table above names each one's attribute where it differs from its prop.