Pick an example to open it full screen, with the live preview and its source side by side.
Attribute values can be functions. The second button flips busy and calls update(); Save's disabled and aria-busy follow.
update()
import 'nuclo' let busy = false export const SaveButton = () => div( button( { type: 'submit', disabled: () => busy, 'aria-busy': () => String(busy), 'data-id': 42, }, 'Save', ), button(() => `busy = ${busy}`, { onClick: () => { busy = !busy; update() }, }), )