Skip to content

Commit c3a23bb

Browse files
authored
Merge pull request #260 from marcushellberg/patch-1
Add syntax example for boolean attributes
2 parents a95690b + f0e847f commit c3a23bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ and renders declaratively using `lit-html`.
6565
* expression: ``` html`<div>${this.disabled ? 'Off' : 'On'}</div>` ```
6666
* property: ``` html`<x-foo .bar="${this.bar}"></x-foo>` ```
6767
* attribute: ``` html`<div class="${this.color} special"></div>` ```
68+
* boolean attribute: ``` html`<input type="checkbox" ?checked=${checked}>` ```
6869
* event handler: ``` html`<button @click="${this._clickHandler}"></button>` ```
6970

7071
## Getting started

0 commit comments

Comments
 (0)