> For the complete documentation index, see [llms.txt](https://shinyobjectlabs.gitbook.io/framework-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shinyobjectlabs.gitbook.io/framework-js/attributes/x-sync.md).

# x-sync

### Overview

Create a two-way binding on a form input element.

### Example

```html
<input x-sync="first_name">
```

### Live Demo

{% embed url="<https://stackblitz.com/edit/web-platform-dk7lbv?embed=1&file=index.html&hideExplorer=1&hideNavigation=1&view=preview>" %}
