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

# x-show

### Overview

Update the element's visibility.

### Example

```html
<div x-show="displayMessage">
    <div>Hello</div>
</div>
```

### Live Demo

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