Skip to content

Commit 7e156c0

Browse files
authored
[docs] document details binding (#6700)
1 parent 0027a41 commit 7e156c0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

site/content/docs/02-template-syntax.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,19 @@ Elements with the `contenteditable` attribute support `innerHTML` and `textConte
651651
<div contenteditable="true" bind:innerHTML={html}></div>
652652
```
653653

654+
---
655+
656+
`<details>` elements support binding to the `open` property.
657+
658+
```sv
659+
<details bind:open={isOpen}>
660+
<summary>Details</summary>
661+
<p>
662+
Something small enough to escape casual notice.
663+
</p>
664+
</details>
665+
```
666+
654667
##### Media element bindings
655668

656669
---

0 commit comments

Comments
 (0)