Skip to content

Commit 9778856

Browse files
committed
added codepen
1 parent 0053064 commit 9778856

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ A minimalistic library to create fast and reactive Web pages.
2828
* simplified accessibility via `aria` attribute and easy *dataset* handling via `data`
2929
* developers enhanced mode runtime debugging sessions
3030

31+
32+
<sub>live @ [codepen](https://codepen.io/WebReflection/pen/VYvbddv?editors=0010)</sub>
33+
3134
```js
3235
import { html, signal } from 'https://esm.run/uhtml';
3336

@@ -54,7 +57,7 @@ If you are familiar with *JSX* you will find *uhtml* syntax very similar:
5457

5558
* self closing tags, such as `<p />`
5659
* self closing elements, such as `<custom-element>...</>`
57-
* object spread operation via `<${Component} ...=${{any: 'prop'}} />`
60+
* object spread operation via `<${Component} ...${{any: 'prop'}} />`
5861
* `key` attribute to ensure *same DOM node* within a list of nodes
5962
* `ref` attribute to retrieve the element via effects or by any other mean
6063

@@ -76,7 +79,7 @@ On top of *JSX* like features, there are other attributes with a special meaning
7679
* `aria` attribute to simplify *a11y*, such as `<button aria=${{role: 'button', labelledBy: 'id'}} />`
7780
* `data` attribute to simplify *dataset* handling, such as `<div data=${{any: 'data'}} />`
7881
* `@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} />`
8083
* `.direct` properties access, such as `<input .value=${content} />`, `<button .textContent=${value} />` or `<div .className=${value} />`
8184
* `?toggle` boolean attributes, such as `<div ?hidden=${isHidden} />`
8285

0 commit comments

Comments
 (0)