You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { html, signal } from'https://esm.run/uhtml';
33
36
@@ -54,7 +57,7 @@ If you are familiar with *JSX* you will find *uhtml* syntax very similar:
54
57
55
58
* self closing tags, such as `<p />`
56
59
* self closing elements, such as `<custom-element>...</>`
57
-
* object spread operation via `<${Component} ...=${{any: 'prop'}} />`
60
+
* object spread operation via `<${Component} ...${{any: 'prop'}} />`
58
61
*`key` attribute to ensure *same DOM node* within a list of nodes
59
62
*`ref` attribute to retrieve the element via effects or by any other mean
60
63
@@ -76,7 +79,7 @@ On top of *JSX* like features, there are other attributes with a special meaning
76
79
*`aria` attribute to simplify *a11y*, such as `<button aria=${{role: 'button', labelledBy: 'id'}} />`
77
80
*`data` attribute to simplify *dataset* handling, such as `<div data=${{any: 'data'}} />`
78
81
*`@event` attribute for generic events handling, accepting an array when *options* are meant to be passed, such as `<button @click=${[event => {}, { once: true }]} />`
79
-
*`on...` prefixed direct events, such as `<button onclick=${listener} />`
82
+
*`on...` prefixed, case insensitive, direct events, such as `<button onclick=${listener} />`
80
83
*`.direct` properties access, such as `<input .value=${content} />`, `<button .textContent=${value} />` or `<div .className=${value} />`
81
84
*`?toggle` boolean attributes, such as `<div ?hidden=${isHidden} />`
0 commit comments