> 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-text.md).

# x-text

### Overview

Updates the element's text content.

### Example

```html
<span x-text="count"></span>
```

### Live Demo

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