comparison design_system/src/components/field.js @ 254:2b6e732087ff

[ui] Add complete native component catalog Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Tue, 04 Aug 2026 15:12:09 -0700
parents 117c4d53c9a4
children
comparison
equal deleted inserted replaced
253:fdf3816959cb 254:2b6e732087ff
7 candidate = `${base}-${suffix++}`; 7 candidate = `${base}-${suffix++}`;
8 } 8 }
9 return candidate; 9 return candidate;
10 } 10 }
11 11
12 /**
13 * Associates a label, native form control, and descriptive help text.
14 *
15 * @extends {HTMLElement}
16 */
12 export class ZenField extends HTMLElement { 17 export class ZenField extends HTMLElement {
13 connectedCallback() { 18 connectedCallback() {
14 if (!this._observer) { 19 if (!this._observer) {
15 this._observer = new MutationObserver(() => this.sync()); 20 this._observer = new MutationObserver(() => this.sync());
16 } 21 }