Skip to content

Button ​

<button-box set="e" to='"twindragon"'><a href="#">the twindragon</a></button-box> -- a ButtonBox whose ButtonFunction is Set(_e, "twindragon"): a click on the anchor sets the variable in the scope it sits in. The anchor is drawn by the renderer, so the element only listens; a link needs no element.

packages/components/src/button-box.ts

Props

This component takes no props.

As a web component

Plain custom elements, no framework required: import @enumeratio/frontend for the side effect and write <button-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.