diff --git a/frontend/packages/shared/src/dom.js b/frontend/packages/shared/src/dom.js index 81b0b677..b4b5f4ef 100644 --- a/frontend/packages/shared/src/dom.js +++ b/frontend/packages/shared/src/dom.js @@ -5,15 +5,18 @@ // used). // // `el(tag, attrs, ...children)` creates an element, applying `attrs` as -// either the `class`/`html` special cases or plain attributes, and +// either the `class`/`html`/`is` special cases or plain attributes, and // appending `children` (strings become text nodes, `null`/`undefined` // entries are skipped so callers can inline conditional children). -// `tag` can be any custom element's tag name too (e.g. `el('hive-btn', -// { variant: 'danger' }, 'label')`) — `document.createElement` upgrades -// it automatically if the tag is already registered. +// `is: 'custom-name'` creates a customized built-in element (e.g. +// `el('button', { is: 'hive-btn' }, 'label')` → `